So I set up a virtual machine with Ubuntu Mate 20.04 and because I wanted to try it out, I set it up to use ZFS. I use a disk size of 10GB and the installer decided to set up my bpool to have a capacity of 480M. However df -h
shows
bpool/BOOT/ubuntu_cub7km 118M 92M 26M 78% /boot
I have 0 experience with ZFS and don't know what this is all about. I didn't even get one kernel update in without an error that initramfs couldn't write to the disk.
Setting up initramfs-tools (0.136ubuntu6.2) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-firmware (1.187.1) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-40-generic
I: The initramfs will attempt to resume from /dev/sda5
I: (UUID=ff3fca52-c9f0-4369-9aaf-598aa999db8b)
I: Set the RESUME variable to override this.
Error 24 : Write error : cannot write compressed block
E: mkinitramfs failure cpio 141 lz4 -9 -l 24
update-initramfs: failed for /boot/initrd.img-5.4.0-40-generic with 1.
dpkg: error processing package linux-firmware (--configure):
installed linux-firmware package post-installation script subprocess returned error exit status 1
How can I expand that partition? Normally I'd just run gparted and move the sizes about a little, but zfs is supposed to be all advanced and stuff. I tried enabling autoexpand for bpool, but the issue persisted. I don't know where the remaining ~400MB space for that pool went either.
As a workaround I moved the initfs image file to my home directory and ran apt upgrade
again, which did generate the new initramfs file without issue. But that seems dangerous and unnecessary.
Edit
I have reinstalled the virtual machine to use a traditional ext4 file system. Thus I can not try out any answers.
I was getting a "similar" error after install a few packages, similar as I am not running ZFS, but same error message. I search and found your issue. Here is my error (see below). I was able to get fix by following answer here, New to Linux, I'm getting this recurring error "ERROR "update-grub" returned an error: exit status 1 " please advise
TLDR; /boot was 100% full, cleaned out with
sudo apt clean;sudo apt auto-remove
, update-initramfs was run as part ofsudo apt auto-remove
, and was successful.It seems you had the same issue like here. Check this solution too, maybe it helps. It solved my problem.
Out of space on boot zpool and cant run updates anymore