Bug#481542: /usr/sbin/update-grub: kernel triggers

Michal Suchanek <hramrach@centrum.cz> michal.suchanek at ruk.cuni.cz
Fri Jun 26 12:08:59 UTC 2009


Package: grub-efi
Version: 1.96+20080724-16
Followup-For: Bug #481542


I don't think considering the situation when you remove your running
kernel and install a new kernel in a single apt run should affect how
kernel packages are handled.

Kernel packages are not auto-removed by apt and if you remove your
running kernel manually you are just asking for trouble.

You may miss some important modules for your kernel later, generating
initrd for the new kernel might fail leaving you without one, and the
new kernel may just be plain broken.

Last but not least grub has a commandline so in most cases you should be
able to boot even with a broken grub.cfg. In cases when you cannot
access the console you should think twice about stuff you are doing and
not remove the old kernel in the first place for the reasons stated
above.

That said, re-generating grub.cfg is not that much of a problem, it only
causes noise during apt runs. The problem is constant re-generating of
initrds which takes qoute a bit of time. This is particualrly annoying
when kernels are removed because generating initrds is completely
pointless in such case.

Thanks

Michal





More information about the Pkg-grub-devel mailing list