I am running a Nextbox-snap with an Ubuntu image on a Rasperry 2.
My probem is after running upgrades I always get an error message stating that initramfs-tools can’t complete the post-installation process, stating that the /boot/firmware-folder is out of space. This process creates backup copies of the old files in the firmware folder, resulting in missing space and incomplete initrd.img an vmlinuz files, which makes the system unbootable.
In my configuration the folder
/boot/firmware is the first partition of the sd-card, which contains the firmware. Initially it contained only 60 MB rougly, so I enlarged it to 400 MB. But the error message keeps on popping up. So I am wondering what is going here and would appreciate any help.
My System:
Linux nextcloud 4.4.0-1017-raspi2 #23-Ubuntu SMP Thu Jun 30 21:50:40 UTC 2016 armv7l armv7l armv7l GNU/Linux
martin@nextcloud:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 959206864 100258320 810200616 12% /
devtmpfs 467856 0 467856 0% /dev
tmpfs 473100 0 473100 0% /dev/shm
tmpfs 94620 2952 91668 4% /run
tmpfs 5120 0 5120 0% /run/lock
tmpfs 473100 0 473100 0% /sys/fs/cgroup
/dev/mmcblk0p1 425744 43272 382472 11% /boot/firmware
/dev/loop1 85120 85120 0 100% /snap/core/10187
/dev/loop0 85120 85120 0 100% /snap/core/10130
/dev/loop3 46848 46848 0 100% /snap/core18/1889
/dev/loop2 46592 46592 0 100% /snap/core18/1882
/dev/loop4 56832 56832 0 100% /snap/lxd/16931
/dev/loop5 231424 231424 0 100% /snap/nextcloud/23744
/dev/loop6 235008 235008 0 100% /snap/nextcloud/23502
tmpfs 94620 0 94620 0% /run/user/1001
error message at the end of the update process
mv: cannot move '/boot/firmware/bcm2708-rpi-b-rev1.dtb' to '/boot/firmware/bcm2708-rpi-b-rev1.dtb.bak': No space left on device
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1
dpkg: Fehler beim Bearbeiten des Paketes initramfs-tools (--configure):
»installiertes initramfs-tools-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)