6e72c5b2b7
long overdue, and avoids the issue of the meta packages version going down after being folded in from the pve-kernel-meta repository. the ABI needs to be bumped for every published kernel package now that modules are signed, else the booted kernel image containing the public part of the ephemeral signing key, and the on-disk (potentially upgraded in-place) signed module files can disagree, and module loading would fail. not changed (yet): git repository name, pve-firmware Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
24 lines
556 B
Perl
Executable File
24 lines
556 B
Perl
Executable File
#!/usr/bin/perl
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
# Ignore all invocations uxcept when called on to remove
|
|
exit 0 unless ($ARGV[0] && $ARGV[0] =~ /remove/) ;
|
|
|
|
# do nothing if run from proxmox installer
|
|
exit 0 if -e "/proxmox_install_mode";
|
|
|
|
my $imagedir = "/boot";
|
|
|
|
my $version = "@@KVNAME@@";
|
|
|
|
if (-d "/etc/kernel/prerm.d") {
|
|
print STDERR "Examining /etc/kernel/prerm.d.\n";
|
|
system(
|
|
"run-parts --verbose --exit-on-error --arg=$version --arg=$imagedir/vmlinuz-$version /etc/kernel/prerm.d"
|
|
) && die "Failed to process /etc/kernel/prerm.d";
|
|
}
|
|
|
|
exit 0
|