* grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
partitions under /dev/disk/by-id/.
This commit is contained in:
parent
c64db050f7
commit
6b4e643081
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2011-05-27 Colin Watson <cjwatson@ubuntu.com>
|
||||||
|
|
||||||
|
* grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
|
||||||
|
partitions under /dev/disk/by-id/.
|
||||||
|
|
||||||
2011-05-27 Colin Watson <cjwatson@ubuntu.com>
|
2011-05-27 Colin Watson <cjwatson@ubuntu.com>
|
||||||
|
|
||||||
* grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
|
* grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
|
||||||
|
|
|
@ -573,6 +573,12 @@ linux_find_partition (char *dev, grub_disk_addr_t sector)
|
||||||
p = real_dev + len - 4;
|
p = real_dev + len - 4;
|
||||||
format = "part%d";
|
format = "part%d";
|
||||||
}
|
}
|
||||||
|
else if (strncmp (real_dev, "/dev/disk/by-id/",
|
||||||
|
sizeof ("/dev/disk/by-id/") - 1) == 0)
|
||||||
|
{
|
||||||
|
p = real_dev + len;
|
||||||
|
format = "-part%d";
|
||||||
|
}
|
||||||
else if (real_dev[len - 1] >= '0' && real_dev[len - 1] <= '9')
|
else if (real_dev[len - 1] >= '0' && real_dev[len - 1] <= '9')
|
||||||
{
|
{
|
||||||
p = real_dev + len;
|
p = real_dev + len;
|
||||||
|
|
Loading…
Reference in a new issue