Some PinePhone installs with a small
/boot partition might experience a failure when
mkinitfs runs on upgrade:
==> Installing: /boot/initramfs ==> Installing: /boot/vmlinuz ==> Installing: /boot/initramfs-extra ==> Installing: /boot/sun50i-a64-pinephone-1.1.dtb *NOT* copying file atomically (not enough free space at target): /tmp/mkinitfs402660607/allwinner/sun50i-a64-pinephone-1.1.dtb ==> Installing: /boot/sun50i-a64-pinephone-1.2.dtb *NOT* copying file atomically (not enough free space at target): /tmp/mkinitfs402660607/allwinner/sun50i-a64-pinephone-1.2.dtb ==> Installing: /boot/uImage *NOT* copying file atomically (not enough free space at target): /tmp/mkinitfs402660607/uImage cp: write error: No space left on device
Previous versions of the PinePhone's device package in pmaports built/installed
a u-boot legacy kernel and initramfs image to /boot. This was removed in
however the old
uInitrd files were not cleaned up in
mkintifs to fail when there is no more free space.
apk upgrade output looks like that above, where
uImage file, make sure that
/etc/deviceinfo is unmodified from
device-pine64-pinephone package installs.
A proper fix is being developed, but in the meantime the following workaround should recover things:
$ sudo rm /boot/uImage* $ sudo rm /boot/uInitrd* $ sudo apk fix -r