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.

Attachment: grub-kernel-hook
Description: application/shellscript

Attachment: signature.asc
Description: PGP signature

Reply via email to