]>
git.proxmox.com Git - pve-kernel.git/blob - debian/pve-kernel.prerm.in
5 # Ignore all invocations uxcept when called on to remove
6 exit 0 unless ($ARGV[0] && $ARGV[0] =~ /remove/) ;
8 # do nothing if run from proxmox installer
9 exit 0 if -e
"/proxmox_install_mode";
11 my $imagedir = "/boot";
13 my $version = "@@KVNAME@@";
15 if (-d
"/etc/kernel/prerm.d") {
16 print STDERR
"Examining /etc/kernel/prerm.d.\n";
17 system ("run-parts --verbose --exit-on-error --arg=$version " .
18 "--arg=$imagedir/vmlinuz-$version " .
19 "/etc/kernel/prerm.d") &&
20 die "Failed to process /etc/kernel/prerm.d";