Ubuntu 22.04 boot stuck in initramfs, when installed with zfs encryption
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu CD Images |
Fix Released
|
Undecided
|
Unassigned | ||
initramfs-tools (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
zfs-linux (Ubuntu) |
Fix Released
|
Undecided
|
Dimitri John Ledkov |
Bug Description
Hi,
I just installed the latest Ubuntu desktop from iso file ubuntu-
Then I upgraded the packages to the latest version via the Software updater. After reboot I'm stuck in the initramfs prompt. The following command fails:
mount -o zfsutil -t zfs rpool/ROOT/
Permission denied.
And the system never asks me for the password to unlock the root fs.
So, I'm guessing that there is something wrong with the new initramfs disk: initrd.
When I reboot and select the previous version in grub: initrd.
Thanks.
To summarize:
1. Installed new VM using the Ubuntu iso image. Chose ZFS native encryption. Minimal install.
2. As soon as the system came up, I hit the update/upgrade prompt. Rebooted and failed to boot the new version.
I didn't customize anything or installed anything extra.
root@ubud01:/var# lsb_release -rd
Description: Ubuntu 21.10
Release: 21.10
root@ubud01:/var# dpkg -l | grep zfs
ii libzfs4linux 2.0.6-1ubuntu2 amd64 OpenZFS filesystem library for Linux
ii zfs-initramfs 2.0.6-1ubuntu2 amd64 OpenZFS root filesystem capabilities for Linux - initramfs
ii zfs-zed 2.0.6-1ubuntu2 amd64 OpenZFS Event Daemon
ii zfsutils-linux 2.0.6-1ubuntu2 amd64 command-line tools to manage OpenZFS filesystems
root@ubud01:/var# dpkg -l | grep init
ii busybox-initramfs 1:1.30.1-6ubuntu3.1 amd64 Standalone shell setup for initramfs
ii cryptsetup-
ii gnome-initial-setup 40.4-1ubuntu1 amd64 Initial GNOME system setup helper
ii init 1.60build1 amd64 metapackage ensuring an init system is installed
ii init-system-helpers 1.60build1 all helper tools for all init systems
ii initramfs-tools 0.140ubuntu6 all generic modular initramfs generator (automation)
ii initramfs-tools-bin 0.140ubuntu6 amd64 binaries used by initramfs-tools
ii initramfs-
ii libatopology2:amd64 1.2.4-1.1ubuntu3.1 amd64 shared library for handling ALSA topology definitions
ii libklibc:amd64 2.0.8-6.1ubuntu2 amd64 minimal libc subset for use with initramfs
ii lsb-base 11.1.0ubuntu3 all Linux Standard Base init script functionality
ii ncurses-base 6.2+20201114-
ii sysvinit-utils 2.96-7ubuntu1 amd64 System-V-like utilities
ii xinit 1.4.1-0ubuntu3 amd64 X server initialisation tool
ii zfs-initramfs 2.0.6-1ubuntu2 amd64 OpenZFS root filesystem capabilities for Linux - initramfs
root@ubud01:/var# zfs list
NAME USED AVAIL REFER MOUNTPOINT
bpool 290M 542M 96K /boot
bpool/BOOT 289M 542M 96K none
bpool/BOOT/
rpool 6.39G 10.6G 192K /
rpool/ROOT 5.64G 10.6G 192K none
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/ROOT/
rpool/USERDATA 246M 10.6G 192K /
rpool/USERDATA/
rpool/USERDATA/
rpool/keystore 518M 11.0G 48.1M -
root@ubud01:/var# zfs get encryption rpool/ROOT/
NAME PROPERTY VALUE SOURCE
rpool/ROOT/
tags: | added: rls-ii-incoming |
The original (working) disk is config- 5.13.0- 19-generic.