package initramfs-tools 0.142ubuntu2 failed to install/upgrade due to boot zpool space consumption (snapshots)

Bug #2027857 reported by Steve Kirk
8
This bug affects 1 person
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://gb.archive.ubuntu.com/ubuntu lunar/main amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu lunar/main i386 Packages
        100 /var/lib/dpkg/status

ProblemType: Package
DistroRelease: Ubuntu 23.04
Package: initramfs-tools 0.142ubuntu2
ProcVersionSignature: Ubuntu 6.2.0-24.24-generic 6.2.12
Uname: Linux 6.2.0-24-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
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)
PackageArchitecture: all
Python3Details: /usr/bin/python3.11, Python 3.11.2, python3-minimal, 3.11.2-1
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
 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)

Revision history for this message
Steve Kirk (spk) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Benjamin Drung (bdrung) wrote :

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
rpool/ROOT/ubuntu_jrhcdu 52991360 13630720 39360640 26% /
bpool/BOOT/ubuntu_jrhcdu 594304 594048 256 100% /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
rpool/ROOT/ubuntu_0uy6cf 15004928 4374912 10630016 30% /
bpool/BOOT/ubuntu_0uy6cf 851200 285184 566016 34% /boot

So 831 MiB is still less than 1 GiB. Re-assigning to the installer.

affects: initramfs-tools (Ubuntu) → ubiquity (Ubuntu)
Revision history for this message
Dan Bungert (dbungert) wrote :

Thanks for the bug report Steve.

This one was previously fixed, by updating the required minimum to 1.75GiB.

Changed in ubiquity (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.