update-initramfs fails with an error 'Error 24 : Write error : cannot write compressed block'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
On a VirtualBox 6.1.14 VM with 2 vCPUs and 8 GB RAM and a 10 GiB hard disk space, I installed Ubuntu 20.10 with ZFS enabled on a full disk installation using the latest installer ISO available on the Ubuntu releases site.
After installation, I booted into the installed OS and tried to install all the package updates. It went mostly fine till when it tried to run the update-initramfs operation and failed. Below are the relevant messages printed to the console.
<snip>
Setting up initramfs-tools (0.137ubuntu12) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.137ubuntu12) ...
update-initramfs: Generating /boot/initrd.
Error 24 : Write error : cannot write compressed block
E: mkinitramfs failure cpio 141 lz4 -9 -l 24
update-initramfs: failed for /boot/initrd.
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:
initramfs-tools
ZSys is adding automatic system snapshot to GRUB menu
</snip>
I checked the free disk space to ensure that there is enough available.
<snip>
guruprasad@
Filesystem Size Used Avail Use% Mounted on
tmpfs 796M 1.5M 795M 1% /run
/dev/mapper/
rpool/ROOT/
tmpfs 3.9G 33M 3.9G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 4.0M 0 4.0M 0% /sys/fs/cgroup
bpool/BOOT/
rpool/USERDATA/
/dev/sda2 512M 19M 494M 4% /boot/efi
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/USERDATA/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
tmpfs 796M 188K 796M 1% /run/user/1000
</snip>
ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: initramfs-tools 0.137ubuntu12
ProcVersionSign
Uname: Linux 5.8.0-25-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu50
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Tue Oct 20 23:05:25 2020
InstallationDate: Installed on 2020-10-20 (0 days ago)
InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Beta amd64 (20200930)
PackageArchitec
RebootRequiredPkgs:
evolution-
gnome-shell
SourcePackage: initramfs-tools
UpgradeStatus: No upgrade log present (probably fresh install)
This appears to be because of the limited remaining space in the /boot partition but the partition layout and sizes were automatically configured by the Ubuntu installer, which seems to be the culprit here.