Bug#554175: Bug#554171: grub2: add hook script for linux-2.6 make deb-pkg

Colin Watson cjwatson at debian.org
Tue Aug 3 22:41:17 UTC 2010


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                                       [cjwatson at debian.org]





More information about the Pkg-grub-devel mailing list