3.6.2 image /boot too small for apt-get upgrade


#1

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

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
/etc/kernel/postinst.d/initramfs-tools-hack
still exists from package
piaware-support

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


#2

See Piaware latest kernel update


#3

"sudo raspi-config

Try expanding your file system first.


#4

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