partitions under /dev/disk/by-id/.
+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>
* grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
p = real_dev + len - 4;
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')
{
p = real_dev + len;