Upgrade with zfs-on-root failures
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
ubuntu-release-upgrader (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I followed rlaager's howto for installing Ubuntu 18.04 LTS with ZFS root (but used disco). I've also set up sanoid to perform periodic snapshots of bpool (which stores /boot).
The upgrade from disco to eoan didn't go well:
[.. trimmed to fit in the comment box; more context in attachment ..]
/ubuntu@
Found initrd image: initrd.
Found linux image: vmlinuz-
Found initrd image: initrd.
Found linux image: vmlinuz-
Found initrd image: initrd.
Found linux image: vmlinuz-
Found initrd image: initrd.
Adding boot menu entry for EFI firmware configuration
done
Processing triggers for dbus (1.12.14-1ubuntu2) ...
Processing triggers for initramfs-tools (0.133ubuntu10) ...
update-initramfs: Generating /boot/initrd.
cryptsetup: ERROR: Couldn't resolve device rpool/ROOT/ubuntu
cryptsetup: WARNING: Couldn't determine root device
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
Processing triggers for shim-signed (1.39+15+
Nothing to do.
Processing triggers for libgdk-
Errors were encountered while processing:
initramfs-tools
Exception during pm.DoInstall(): E:Sub-process /usr/bin/dpkg returned an error code (1)
Could not install the upgrades
The upgrade has aborted. Your system could be in an unusable state. A
recovery will run now (dpkg --configure -a).
Setting up initramfs-tools (0.133ubuntu10) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.133ubuntu10) ...
update-initramfs: Generating /boot/initrd.
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/
cryptsetup: ERROR: Couldn't resolve device rpool/ROOT/ubuntu
cryptsetup: WARNING: Couldn't determine root device
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
Upgrade complete
The upgrade has completed but there were errors during the upgrade
process.
To continue please press [ENTER]
ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: ubuntu-
ProcVersionSign
Uname: Linux 5.0.0-40-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu8.3
Architecture: amd64
CrashDB: ubuntu
Date: Fri Jan 24 06:02:32 2020
PackageArchitec
ProcEnviron:
TERM=rxvt-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ubuntu-
UpgradeStatus: Upgraded to eoan on 2020-01-24 (0 days ago)
VarLogDistupgra
Error: command ['pkexec', 'cat', '/var/log/
Error executing command as another user: Not authorized
This incident has been reported.
VarLogDistupgra
INFO:root:
INFO:root:No xorg.conf, exiting
I'm surprised the snapshots showed up, I've got the snapdirs hidden:
$ zfs list -oname,snapdir lib/AccountsSer vice hidden lib/docker hidden lib/schroot hidden
NAME SNAPDIR
bpool hidden
bpool/BOOT hidden
bpool/BOOT/ubuntu hidden
rpool hidden
rpool/ROOT hidden
rpool/ROOT/ubuntu hidden
rpool/home hidden
rpool/home/root hidden
rpool/home/sarnold hidden
rpool/swap -
rpool/tmp hidden
rpool/usr hidden
rpool/usr/local hidden
rpool/var hidden
rpool/var/cache hidden
rpool/var/lib hidden
rpool/var/
rpool/var/
rpool/var/lib/nfs hidden
rpool/var/
rpool/var/log hidden
rpool/var/mail hidden
rpool/var/snap hidden
rpool/var/spool hidden
rpool/var/tmp hidden
rpool/var/www hidden