mirror of
https://git.proxmox.com/git/grub2
synced 2025-07-24 09:42:26 +00:00
* util/getroot.c (find_root_devices_from_poolname): Handle vdevs
with full paths.
This commit is contained in:
parent
a414bd1565
commit
897b741978
@ -1,3 +1,8 @@
|
||||
2012-02-27 Richard Laager <rlaager@wiktel.com>
|
||||
|
||||
* util/getroot.c (find_root_devices_from_poolname): Handle vdevs
|
||||
with full paths.
|
||||
|
||||
2012-02-27 Richard Laager <rlaager@wiktel.com>
|
||||
|
||||
* util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user