]> git.proxmox.com Git - pve-kernel.git/blob - debian/pve-kernel.postinst.in
update submodule sources to Ubuntu-5.0.0-21.22
[pve-kernel.git] / debian / pve-kernel.postinst.in
1 #!/usr/bin/perl -w
2
3 use strict;
4
5 # Ignore all invocations except when called on to configure.
6 exit 0 unless $ARGV[0] =~ /configure/;
7
8 # do nothing if run from proxmox installer
9 exit 0 if -e "/proxmox_install_mode";
10
11 my $imagedir = "/boot";
12
13 my $version = "@@KVNAME@@";
14
15 system("depmod $version");
16
17 if (-d "/etc/kernel/postinst.d") {
18 print STDERR "Examining /etc/kernel/postinst.d.\n";
19 system ("run-parts --verbose --exit-on-error --arg=$version " .
20 "--arg=$imagedir/vmlinuz-$version " .
21 "/etc/kernel/postinst.d") &&
22 die "Failed to process /etc/kernel/postinst.d";
23 }
24
25 exit 0