Greg Wooledge [2021-07-03 14:03:44] wrote: > On Sat, Jul 03, 2021 at 06:49:35PM +0100, mick crane wrote: >> root@pumpkin:/boot# df -h /boot >> Filesystem Size Used Avail Use% Mounted on >> /dev/sdb1 236M 159M 65M 71% /boot > This is the real issue. This file system is simply too small if you > plan to keep more than 2 kernels at a time.
Not at all. Just adjust the /etc/initramfs-tools/initramfs.conf with MODULES=dep COMPRESS=lzma and you'll have room for many more kernels. > One thing I'll note is that your initrd* files are twice as big as mine. > > -rw-r--r-- 1 root root 30924690 Jan 29 17:34 initrd.img-4.19.0-13-amd64 > -rw-r--r-- 1 root root 33151811 May 13 07:19 initrd.img-5.10.0-6-amd64 > -rw-r--r-- 1 root root 33165977 Jun 28 07:08 initrd.img-5.10.0-7-amd64 Indeed, his initrd.imgs are unusually large. Not sure what's going on with them, but the above two changes should shave off at the very least 20MB from each one of his initrd.img. The only thing with `MODULES=dep` is that it runs a slightly higher risk of ending up with an unbootable system after a hardware or filesystem/LVM/MD/partition change. Just make sure you have some way to do a "rescue boot" in those cases (typically via a USB flash key with some minimal GNU/Linux system on it), but this comes in handy in many other circumstances so I recommend you have that at hand in any case. Stefan