]> git.ipfire.org Git - thirdparty/grub.git/commit
zfs: Fix LINUX_ROOT_DEVICE when grub-probe fails master
authorDoug Goldstein <cardoe@cardoe.com>
Wed, 23 Jul 2025 15:40:04 +0000 (16:40 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 14 Aug 2025 22:27:02 +0000 (00:27 +0200)
commit19c698d123ae46d7a8fbf425067aff2d10dac8ca
tree56055865d7f99f36064cc3a82c457e4a840d4201
parent6898fcf74d134d7220c533e476585370f25bc378
zfs: Fix LINUX_ROOT_DEVICE when grub-probe fails

When grub-probe fails, the current code is to just stuff an empty result
in which causes the user to not knowingly have a system that no longer
boots. grub-probe can fail because the ZFS pool that contains the root
filesystem might have features that GRUB does not yet support which is
a common configuration for people with a rpool and a bpool. This behavior
uses the zdb utility to dump the same value as the filesystem label
would print.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
util/grub.d/10_linux.in
util/grub.d/20_linux_xen.in