johang/sd-card-images

Can't upgrade kernel [Bookworm, La Frite)

Closed this issue · 5 comments

I have your Debian Bookworm version on a La Frite and I can upgrade packages except a few, most notably the kernel. I always get a message about no space left on device even though everything else can be installed.

Setting up libc6-dev:arm64 (2.36-9) ...
Processing triggers for libc-bin (2.36-9) ...
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-6-arm64
cpio: write error: No space left on device
E: mkinitramfs failure cpio 2
update-initramfs: failed for /boot/initrd.img-6.1.0-6-arm64 with 1.
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-image-6.1.0-7-arm64
 linux-image-arm64
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
johang commented

Probably no space left on the root filesystem. How to resize it described on the tips and tricks page.

Jag har utökat den och det ska vara ett antal GiB ledigt.

Filesystem     1K-blocks    Used Available Use% Mounted on
udev              147660       0    147660   0% /dev
tmpfs              41752     608     41144   2% /run
/dev/sda2        7573512 3116716   4053756  44% /
tmpfs             208760  105148    103612  51% /dev/shm
tmpfs               5120      12      5108   1% /run/lock
tmpfs             208760       4    208756   1% /tmp
tmpfs             208760       0    208760   0% /var/tmp
/dev/zram1        127440    9356    107332   9% /opt/zram/zram1
overlay1          127440    9356    107332   9% /var/log
tmpfs              41752       0     41752   0% /run/user/0

Har du någon aning om vad det kan vara då rotfilsystemet inte är fullt?

Jag verkar ha löst det. Jag ändrade MODULES=most till MODULES=dep i /etc/initramfs-tools/initramfs.conf. Kanske ställer 512MB RAM till det på något vis när cpio ska packa samman init-filen?

johang commented

OK, nice finding. Looks like mkinitramfs uses /var/tmp.