>From 15167b12729e95328679752a71c507edecc768bf Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Sat, 2 Feb 2019 15:54:39 -0600 Subject: [PATCH] ZFS: Ignore replacing-* devices When replacing a drive in a zpool, grub-install fails, at least partially due to the "replacing-0" in the zpool status output: # grub-install /dev/sdf Installing for i386-pc platform. grub-install: error: failed to get canonical path of `/dev/replacing-0'. Signed-off-by: Richard Laager --- grub-core/osdep/unix/getroot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/grub-core/osdep/unix/getroot.c b/grub-core/osdep/unix/getroot.c index 3046e22cc..451268275 100644 --- a/grub-core/osdep/unix/getroot.c +++ b/grub-core/osdep/unix/getroot.c @@ -292,6 +292,7 @@ grub_util_find_root_devices_from_poolname (char *poolname) && !sscanf (name, "raidz1%u", &dummy) && !sscanf (name, "raidz2%u", &dummy) && !sscanf (name, "raidz3%u", &dummy) + && !sscanf (name, "replacing-%u", &dummy) && !strcmp (state, "ONLINE")) { if (ndevices >= devices_allocated) -- 2.17.1