package initramfs-tools 0.142ubuntu2 failed to install/upgrade due to boot zpool space consumption (snapshots)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubiquity (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Using ZFS on Ubuntu, configured with the default options for bpool in the installer for (I think 22.04) the kernel upgrade process often seems to fail building initrd due to running out of space. This is due to zfs snapshots.
I'm not sure this is a bug in itself, however I think it is a problem that the process fails quite regularly with this configuration which does seem like something that could be handled better to avoid this situation.
I do think the installer should create a larger bpool and I would do that manually if I re-installed. Only allocating ~2G given the size of modern drives seems much too small to me.
No LSB modules are available.
Description: Ubuntu 23.04
Release: 23.04
initramfs-tools:
Installed: 0.142ubuntu2
Candidate: 0.142ubuntu2
Version table:
*** 0.142ubuntu2 500
500 http://
500 http://
100 /var/lib/
ProblemType: Package
DistroRelease: Ubuntu 23.04
Package: initramfs-tools 0.142ubuntu2
ProcVersionSign
Uname: Linux 6.2.0-24-generic x86_64
NonfreeKernelMo
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CasperMD5CheckR
Date: Sat Jul 15 15:20:21 2023
ErrorMessage: installed initramfs-tools package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2022-12-23 (204 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
PackageArchitec
Python3Details: /usr/bin/
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageV
dpkg 1.21.21ubuntu1
apt 2.6.0
SourcePackage: initramfs-tools
Title: package initramfs-tools 0.142ubuntu2 failed to install/upgrade: installed initramfs-tools package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to lunar on 2023-06-24 (21 days ago)
tags: | removed: need-duplicate-check |
Thank you for taking the time to report this bug and helping to make Ubuntu better. Your df log says:
Filesystem 1K-blocks Used Available Use% Mounted on ubuntu_ jrhcdu 52991360 13630720 39360640 26% / ubuntu_ jrhcdu 594304 594048 256 100% /boot
rpool/ROOT/
bpool/BOOT/
That are only 580 MiB for the /boot partition.
I did a test installation of ubuntu- 22.04.2- desktop- amd64.iso in a VM with a 20 GiB disk. I left everything as default except selecting to use ZFS. That resulted in:
Filesystem 1K-blocks Used Available Use% Mounted on ubuntu_ 0uy6cf 15004928 4374912 10630016 30% / ubuntu_ 0uy6cf 851200 285184 566016 34% /boot
rpool/ROOT/
bpool/BOOT/
So 831 MiB is still less than 1 GiB. Re-assigning to the installer.