Hi,
I am facing a nearly full (80%) /boot partition and noted that I have two rescue initramfs (176.2 MB each) installed. I don’t need any initramfs-rescue images.
How can I remove them and ensure that they are not getting reinstalled? Any idea why I would have two of them?
You should have one for each vmlinuz-%-rescue kernel you have. The checksum/timestamp/whatever it is at the end of the rescue kernel entry should match. i
Permissions Size User Date Modified Name
.rw-------@ 177M root 15 May 20:58 initramfs-0-rescue-60e6926ef6e148f2a81930f078796b11.img
.rwxr-xr-x@ 17M root 15 May 20:57 vmlinuz-0-rescue-60e6926ef6e148f2a81930f078796b11
Delete the one which doesn’t match, unless you have two rescue kernels… not sure how you’d get into that position but we live in interesting times.
Oh, very good hint. The machine is brand-new, but I installed a GPU after installing the system, so that could have triggered the change of machine-id.
GRUB discovers these dynamically (at boot-time, not at config-build-time) from the files in the /boot/loader/entries directory. So the GRUB config shouldn’t need to be regenerated when manually deleting a rescue kernel, but the corresponding entry in /boot/loader/entries will need to be deleted to avoid a phantom unbootable item in the GRUB menu.