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

Re: update-initramfs



On 11 Apr 2023 02:17, Marc Auslander wrote:
I'm on Buster.

In /boot I keep a copy of the current working linux named by appending -knowngood to the four files.  My idea is that if an update fails, I have a recent working linux.  This is different from vmlinuz.old which is the previous kernel version.  The updates in question are not to the kernel but to initrd.image of course.

In addition to what David wrote, why are you not using the backup
facility of initramfs instead of doing it manually ?

$ cat /etc/initramfs-tools/update-initramfs.conf
[...]
#
# backup_initramfs [ yes | no ]
#
# Default is no
# If set to no leaves no .bak backup files.

backup_initramfs=yes
[...]


Suddenly, update-initramfs insists in trying to first update
initrd.....-knowngood  which of course fails because there are no underling file with that name.  This never happened in the past, AFAIK. Once it fails it gives up.

There seems no way to force update-initramfs to update the right kernel.

Ideas?


RTFM ? :)

The solution is in "man update-initramfs" :
update-initramfs -c -k $KERNEL_VERSION

-c creates a new initramfs
-k specifies the version of the kernel


Reply to: