3.6.2 image /boot too small for apt-get upgrade


I just tried to
apt-get upgrade
my 3.6.2 image and it failed updating

Processing triggers for initramfs-tools (0.130) ...
ln: failed to create hard link '/boot/initrd.img-4.14.62+.dpkg-bak' => '/boot/initrd.img-4.14.62+': Operation not permitted
update-initramfs: Generating /boot/initrd.img-4.14.62+

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.14.62+ with 1.

/boot is only ~43MB
no room for two initrd images of ~11MB left

I had to
rpi-bootconfig scan
rpi-bootconfig update
to fix /boot/config.txt as well. Otherwise there was no pi2/pi3 section left after the kernel update.

I noticed that 3.6.2 initially had no initrd files in /boot, but
still exists from package

This in combination with the small /boot seems to fail badly.


See Piaware latest kernel update


"sudo raspi-config

Try expanding your file system first.


My “/” is already expanded what makes expanding /boot even more difficult. raspi-config doesn’t expand /boot anyway.