[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Question about update-initramfs

"Rodolfo García Peñas (kix)" <kix@kix.es> writes:

> Then, what should I do? What is the correct option?

> 1. update-initramfs -u
> 2. update-initramfs -u -k all

I believe the current behavior (without -k all) is more correct.  At
least, it would be my preference.

I think my personal use case is relatively common: at any given time, I
usually have only one actively updated kernel.  As new kernel packages
(without ABI changes) or new updates to the early boot infrastructure are
released, that kernel is updated.  I always retain the previous ABI
version of the kernel on my system as well so that, if anything goes
wrong, I can tell grub to boot the old kernel and probably have a
basically working system, at least good enough that I can try to patch up
whatever went wrong with the new package update.

If updates start messing around with the old kernel image, it interferes
with that use case.  Now, if something breaks initramfs images, it will be
pushed into the old kernel image as well as the new, and then I have to go
looking for a rescue CD to fix my system.

I'd therefore prefer that any updates to kernel infrastructure only work
on the currently running kernel plus possibly any *newer* kernels, but not
older kernels (DKMS does a good job of this).

Not everyone will have the same use case, but that's why there's a setting
in the update-initramfs configuration where they can request that
update-initramfs always update all kernels.

Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>

Reply to: