zfs fails reverting to a previous snapshot on reboot when selected on grub
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zfs-linux (Ubuntu) |
Fix Released
|
Critical
|
Dimitri John Ledkov | ||
Impish |
Fix Released
|
Critical
|
Dimitri John Ledkov |
Bug Description
[Impact]
* zfs fails reverting to a previous snapshot on reboot when selected on grub
* A miss-merge dropped initramfs hook changes, which result in failing to generate and use a new zfs uid.
* Thus revert code to how it was before in https:/
[Test Plan]
* Create snapshot with $ zsysctl save test-sru --system
* Reboot and attempt to boot into test-sru snapshot
[Where problems could occur]
* The change is to initramfs hook only, thus initrd generation and boot paths are affected. Only latest initrd is rebuilt, rather than old ones, meaning booting initrds of older kernel abis will not be resolved.
[Other Info]
* Original bug report
After creating a snapshot with: zsysctl save 211012-linux13-19 -s
the reboot fails as shown on the screenshot, the other screenshot shows the result of the snapshot.
ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: zsys 0.5.8
ProcVersionSign
Uname: Linux 5.13.0-19-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu70
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: XFCE
Date: Tue Oct 12 19:11:43 2021
InstallationDate: Installed on 2021-10-12 (0 days ago)
InstallationMedia: Xubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
Mounts: Error: [Errno 40] Too many levels of symbolic links: '/proc/mounts'
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
zfs-initramfs 2.0.6-1ubuntu2
zfsutils-linux 2.0.6-1ubuntu2
SourcePackage: zsys
SystemdFailedUnits:
UpgradeStatus: No upgrade log present (probably fresh install)
ZFSImportedPools:
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
bpool 768M 79.2M 689M - - 0% 10% 1.00x ONLINE -
rpool 14G 3.33G 10.7G - - 1% 23% 1.00x ONLINE -
ZFSListcache-bpool:
bpool /boot off on on off on off on off - none - - - - - - - -
bpool/BOOT none off on on off on off on off - none - - - - - - - -
bpool/
ZSYSJournal:
-- Journal begins at Tue 2021-10-12 18:10:37 AST, ends at Tue 2021-10-12 19:11:52 AST. --
-- No entries --
modified.
Another screenshot with zfs list - t snapshot and some info in Conky