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