]> dgit.raspbian.org Git - grub2.git/commit
zfs: fix LINUX_ROOT_DEVICE when grub-probe fails
authorDoug Goldstein <cardoe@cardoe.com>
Fri, 18 Dec 2020 02:27:14 +0000 (20:27 -0600)
committerAurelien Jarno <aurel32@debian.org>
Thu, 30 Apr 2026 19:02:01 +0000 (21:02 +0200)
commite03befb372ac60e9e73b237adb9fee185a46471a
tree3da1895fce4ef7bed4660852300000c2e5e06c0b
parentf04c96b2900b7822c9737dfe455bf4eaa2e4dcdf
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>
Gbp-Pq: Topic upstream
Gbp-Pq: Name zfs-fix-LINUX_ROOT_DEVICE-when-grub-probe-fails.patch
util/grub.d/10_linux.in
util/grub.d/20_linux_xen.in