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

2010-08-03 Thread Colin Watson
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



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

2009-12-31 Thread Harald Braumann
tags 554175 patch
thanks

Hi,

attached is a script that can be used as a hook
in /etc/kernel/{postinst,postrm}.d/.

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].

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.

Please ship this script with grub and create symlinks to it in the
respective hook directories.

Cheer,
harry

[0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=563161.


grub-kernel-hook
Description: application/shellscript


signature.asc
Description: PGP signature