Bug#607411: installkernel should run-parts /etc/kernel/postinst.d
Package: debianutils
Version: 3.4.2
Severity: wishlist
Tags: patch
Kernel packages are supposed to run hook scripts as per
<http://kernel-handbook.alioth.debian.org/ch-update-hooks.html>.
It probably makes sense to have installkernel do that as well, so
that any required initramfs or boot loader updates are done. The
change is quite simple; see below.
Ben.
--- a/installkernel
+++ b/installkernel
@@ -64,10 +64,11 @@
}
if [ "$(basename $img)" = "vmlinux" ] ; then
- updatever vmlinux "$img"
+ img_dest=vmlinux
else
- updatever vmlinuz "$img"
+ img_dest=vmlinuz
fi
+updatever $img_dest "$img"
updatever System.map "$map"
config=$(dirname "$map")
@@ -75,5 +76,8 @@
if [ -f "$config" ] ; then
updatever config "$config"
fi
+
+run-parts --verbose --exit-on-error --arg="$ver" --arg="$dir/$img_dest-$ver" \
+ /etc/kernel/postinst.d
exit 0
--- END ---
-- System Information:
Debian Release: squeeze/sid
APT prefers proposed-updates
APT policy: (500, 'proposed-updates'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages debianutils depends on:
ii libc6 2.11.2-7 Embedded GNU C Library: Shared lib
ii sensible-utils 0.0.6 Utilities for sensible alternative
debianutils recommends no packages.
debianutils suggests no packages.
-- no debconf information
Reply to: