Hello,

I'm currently running "(k)ubuntu zfs encrypted 24.04" and can confirm
the Problems specified by Danny.

I also receive the error "zfs_mount_at() failed: encryption key not
loaded", which is ignored by the script  and leads to a destroyed
grub.cfg/unbootable system.

The reason i have found is the following in my case:

I am using three zfs-pools, "bpool", "rpool" and a "backup" pool which i
use for backing the rpool. The script "10_linux_zfs" tries to find all
available pools and also tries to mount some of the zfs datasets within
the pools. This works fine for the "rpool", as this pool is active and
the encryption key is loaded. For my backup pool, which is also
encrypted, the mount fails with the above Message because there is
really no encryption key loaded. This is not by mistake but by my
request.

I'm not really sure why this script is not checking for error codes and
allows the destruction of grub.cfg?

As a circumvention i have modified the 10_linux_zfs script so that this
script does not longer see my "backup" pool ... and all is OK again, but
i think that there should be some new concepts (i.e. ignore errors on
pools except bpool and rpool) or create some better error messages.

Thanks,
Jonny

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to