With tonight’s upload of kernel-package, the recent
flurry of activity on this package (8 uploads in 6 days) is drawing
to a close. I think most of the functionality I started to put into
place is now in place, and all reported regressions and bugs in the
new 12.XX version have been fixed. The only known deficiency is in
the support of Xen dom0 images, and for that I am waiting for
kernel version 2.6.30, where Linus has reportedly
incorporated Xen patches. In the meanwhile,
kernel-package seems to be working well, and I am
turning my attention to other things.
But, before I go, here is another example kernel postinst hook script (which, BTW, looks way better with syntax highlighting CSS on my blog than it does in a rss feed or an aggregator site).
1 #! /bin/sh 2 3 set -e 4 5 if [ -n "$INITRD" ] && [ "$INITRD" = 'No' ]; then 6 exit 0 7 fi 8 version="$1" 9 vmlinuz_location="$2" 10 11 12 if [ -n "$DEB_MAINT_PARAMS" ]; then 13 eval set -- "$DEB_MAINT_PARAMS" 14 if [ -z "$1" ] || [ "$1" != "configure" ]; then 15 exit 0; 16 fi 17 fi 18 19 # passing the kernel version is required 20 [ -z "$version" ] && exit 1 21 22 if [ -n "$vmlinuz_location" ]; then 23 # Where is the image located? We'll place the initrd there. 24 boot=$(dirname "$vmlinuz_location") 25 bootarg="-b $boot" 26 fi 27 28 # Update the initramfs 29 update-initramfs -c -t -k "$version" $bootarg 30 31 exit 0





Comments