Thanks. The most useful testing is what comment #5 did not cover: its
reproducer ran on 26.10 (grub-common 2.14-2ubuntu3) only; on 24.04 the
patches were only checked to apply, and the patches from #3 and #6 were
checked to apply together but not run together.

1. On a throwaway 24.04 VM, run the reproducer from comment #5 with the
   shipped /etc/grub.d/10_linux_zfs and note each step's exit status and
   line count.
2. Apply 10_linux_zfs-exit-status.patch (comment #6) to
   /etc/grub.d/10_linux_zfs on that VM. It is written against
   util/grub.d/10_linux_zfs.in, so check with patch --dry-run first.
3. Run the reproducer again. Expected, as in comment #5: its step 3 exits
   0 with the same entries as its step 2 plus a "Failed to mount ...
   Ignoring ..." warning, and its step 4 (grub-mkconfig) exits 0 and
   writes those entries.
4. Repeat 2 and 3 with the patch from comment #3 applied as well.
5. On one of your servers, with the script patched as in step 4, run
   grub-mkconfig -o /tmp/grub.cfg.test (this does not touch
   /boot/grub/grub.cfg), once as it normally runs and once with the
   locked pool imported, and compare the menu entries with your current
   /boot/grub/grub.cfg.

Please post the grub-common and zfsutils-linux versions and, for each
run, the exit status and whether the 10_linux_zfs section has entries.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2016778

Title:
  Update-grub fails with a second encrypted, but locked rpool

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2016778/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to