diff --git a/ChangeLog b/ChangeLog index b41e6fb3b..5fa574e2e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-02-27 Richard Laager + + * util/getroot.c (find_root_devices_from_poolname): Handle vdevs + with full paths. + 2012-02-27 Richard Laager * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing diff --git a/util/getroot.c b/util/getroot.c index 113f2cfc9..2c101b8ba 100644 --- a/util/getroot.c +++ b/util/getroot.c @@ -383,7 +383,10 @@ find_root_devices_from_poolname (char *poolname) devices = xrealloc (devices, sizeof (devices[0]) * devices_allocated); } - devices[ndevices++] = xasprintf ("/dev/%s", name); + if (name[0] == '/') + devices[ndevices++] = xstrdup (name); + else + devices[ndevices++] = xasprintf ("/dev/%s", name); } break; }