Bug#554175: Bug#554171: grub2: add hook script for linux-2.6 make deb-pkg
Harald Braumann
harry at unheit.net
Thu Dec 31 14:52:17 UTC 2009
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grub-kernel-hook
Type: application/x-shellscript
Size: 1082 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20091231/805f0738/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20091231/805f0738/attachment.pgp>
More information about the Pkg-grub-devel
mailing list