Package: initramfs-tools
Version: 0.142+deb12u3

Using update-initramfs -k all -c:

AFAICT the new initrd.img is constructed on /boot, while
the previous initrd is still in place. There is a high
risk of filling up all disk space, esp since zstd creates
a 3rd image at run time. If you are not careful, you
might end up with an error message at boot time, saying

initramfs unpacking failed: ZSTD-compressed data is corrupt

I would suggest to create the new initrd either on a
dedicated tmpfs or in /tmp, to move it to /boot as a final
step. You could check in advance if there is enough disk
space to hold the new initrd, and you would avoid temporary
data on /boot, making better use of the available disk
space.


Just a suggestion, of course.

Regards
Harri

Reply via email to