On Thu, Dec 31, 2009 at 03:52:17PM +0100, Harald Braumann wrote: > It checks the value of DEB_MAINT_PARAMS to prevent > running it twice on package purge. This parameter is set by kernels > built with kernel-package. For official kernel builds, no such check > exists, unfortunately, and update-grub will be run twice on package > purge[0].
Thanks. I'm going to simplify this a fair bit after consultation with the kernel folks, and based on general shell style; the tests can be done much more compactly, we don't need to emit noise on stderr when the hook script isn't doing anything, and we should definitely not be hardcoding the path to update-grub. Also, Ben Hutchings advised me that the comment about which packages set DEB_MAINT_PARAMS is incorrect, so I'll leave it out rather than providing incorrect information. I can take it from here, though. > This script must be run after initrd creation, so there should probably > be some agreement about the naming with the initramfs-tools maintainer. > I called the script z99grub in the hook directories. There's a draft policy for this now, which I shall follow. http://lists.debian.org/debian-kernel/2010/07/msg00078.html Regards, -- Colin Watson [cjwat...@debian.org] -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org