[Bug 1965983] Re: ZFS snapshots without etc directory causes grub.cfg build failure
Launchpad Bug Tracker
1965983 at bugs.launchpad.net
Tue Sep 20 09:47:54 UTC 2022
This bug was fixed in the package grub2 - 2.06-2ubuntu12
---------------
grub2 (2.06-2ubuntu12) kinetic; urgency=medium
* ubuntu-zfs-enhance-support.patch: Fix missing lines (LP: #1990143)
-- Julian Andres Klode <juliank at ubuntu.com> Mon, 19 Sep 2022 16:00:47
+0200
** Changed in: grub2 (Ubuntu)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1965983
Title:
ZFS snapshots without etc directory causes grub.cfg build failure
Status in grub2 package in Ubuntu:
Fix Released
Status in grub2 source package in Focal:
New
Status in grub2 source package in Jammy:
New
Bug description:
In /etc/grub.d/10_linux_zfs (built during install from util/grub.d/10_linux_zfs.in), get_dataset_info() tries to unmount mount locations starting with the logic
```
case "${etc_dir}" in /.zfs/snapshot/*/etc)
```
This process occasionally and silently fails while building /boot/grub/grub.cfg when running in FIPS mode (with FIPS kernels), which leaves the generated /boot/grub/grub.cfg without any kernel (linux ...) lines.
It appears that not all ZFS snapsshots that match the switch statement actually have an .../etc directory.
As ZFS is only an option in the Focal Desktop installer, this issue
was only tested with Focal running Canonical's FIPS packages.
In order to reproduce this issue in FIPS mode, the ubuntu-fips and
fips-initramfs-generic packages both need to implement a couple of
patches that haven't released yet. Without these two patches and
without manual intervention, the FIPS kernel will be unable to boot
with a ZFS /boot device. I can provide these additional patches --
please feel free to reach out to me!
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1965983/+subscriptions
More information about the foundations-bugs
mailing list