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