]> git.proxmox.com Git - grub2.git/commitdiff
Tell zpool to emit full device names
authorChad MILLER <chad.miller@canonical.com>
Thu, 27 Oct 2016 21:15:07 +0000 (17:15 -0400)
committerColin Watson <cjwatson@debian.org>
Mon, 27 Sep 2021 19:09:39 +0000 (20:09 +0100)
zfs-initramfs currently provides extraneous, undesired symlinks to
devices directly underneath /dev/ to satisfy zpool's historical output
of unqualified device names. By including this environment variable to
signal our intent to zpool, zfs-linux packages can drop the symlink
behavior when updating to its upstream or backported output behavior.

Bug: https://savannah.gnu.org/bugs/?43653
Bug-Debian: https://bugs.debian.org/824974
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1527727
Last-Update: 2016-11-01

Patch-Name: zpool-full-device-name.patch

grub-core/osdep/unix/getroot.c

index 46d7116c6e660dc9c47df5f5c004715de26fe1bb..da102918dcdb9934da67038f0b6689b2d3a8bb55 100644 (file)
@@ -243,6 +243,7 @@ grub_util_find_root_devices_from_poolname (char *poolname)
   argv[2] = poolname;
   argv[3] = NULL;
 
+  setenv ("ZPOOL_VDEV_NAME_PATH", "YES", 1);
   pid = grub_util_exec_pipe (argv, &fd);
   if (!pid)
     return NULL;