+2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * util/getroot.c (grub_guess_root_devices): Don't canonicalise
+ /dev/root and /dev/dm-*.
+
2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
{
char *tmp = *cur;
int root, dm;
- *cur = canonicalize_file_name (tmp);
- if (*cur == NULL)
- grub_util_error (_("failed to get canonical path of %s"), tmp);
- free (tmp);
+ if (strcmp (*cur, "/dev/root") == 0
+ || strncmp (*cur, "/dev/dm-", sizeof ("/dev/dm-") - 1) == 0)
+ *cur = tmp;
+ else
+ {
+ *cur = canonicalize_file_name (tmp);
+ if (*cur == NULL)
+ grub_util_error (_("failed to get canonical path of %s"), tmp);
+ free (tmp);
+ }
root = (strcmp (*cur, "/dev/root") == 0);
dm = (strncmp (*cur, "/dev/dm-", sizeof ("/dev/dm-") - 1) == 0);
if (!dm && !root)