Bug#481542: grub2: please user triggers
Felix Zielcke
fzielcke at z-51.de
Thu Jul 31 23:25:03 UTC 2008
>(This is also potentially a problem with the initramfs-tools triggers, I
>guess..)
I have now installed etch in a VM and then used aptitude to update it to lenny
As soon as the kernel is configured, there's a mkinitramfs-kpkg call
and after everything is finished the update-initramfs trigger is run.
>Note that ubuntu has triggerised grub; I don't know how/if they deal0
>with that case.
I just started to learn about these triggers.
I looked at the ubuntu packages.
grub2 doestn't have a trigger.
But grub-legacy has a "interest update-grub" trigger.
If that means that when another package runs update-grub then not the
real one is called,
but just dpkg informed to run this trigger, then this would be probable
better then my "interest /boot" trigger.
Their linux_2.6.26-5.13 package doestn't have any trigger update-grub
stuff, only the postinst_hook and postrm_hook,
that our kernel packages probable has too.
Their grub-legacy has a kernel-helper and last-good-boot script which
hardlinks the last working kernel to /boot/last-good-boot/
so on ubuntu you probable always have a working boot entry on at least
grub-legacy.
More information about the Pkg-grub-devel
mailing list