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)
committerJulian Andres Klode <jak@debian.org>
Sun, 2 Nov 2025 11:08:11 +0000 (12:08 +0100)
commitab217e2529fe49b6de9b60e2c47e7750ef65cdf4
tree79fea36994ecaa4afa6f363ca55efafb75d4a955
parent6ae7bf6433e47173f737c907bf325f6dad0c1146
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