]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2008-02-12 Robert Millan <rmh@aybabtu.com>
authorrobertmh <robertmh@localhost>
Tue, 12 Feb 2008 22:45:58 +0000 (22:45 +0000)
committerrobertmh <robertmh@localhost>
Tue, 12 Feb 2008 22:45:58 +0000 (22:45 +0000)
        * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
        /dev (like it is done for /dev/mapper).  This doesn't provide support
        for EVMS, but at least it is now easy to identify the problem when it
        arises.

ChangeLog
util/getroot.c

index 95376ee365545471e91992409064d3bab82559a2..a78bb0961538bc04c558d5bce62c96d28468c335 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-02-12  Robert Millan  <rmh@aybabtu.com>
+
+       * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
+       /dev (like it is done for /dev/mapper).  This doesn't provide support
+       for EVMS, but at least it is now easy to identify the problem when it
+       arises.
+
 2008-02-11  Robert Millan  <rmh@aybabtu.com>
 
        * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
index 74ee6d6677fe7e1104d9fb62d888a1c7cda41f28..a591dc81f8c1ad6589b0f3e9984130ea9bfcc1a9 100644 (file)
@@ -228,9 +228,14 @@ grub_guess_root_device (const char *dir)
 #ifdef __linux__
   /* We first try to find the device in the /dev/mapper directory.  If
      we don't do this, we get useless device names like /dev/dm-0 for
-     LVM. */
+     LVM.  */
   os_dev = find_root_device ("/dev/mapper", st.st_dev);
-  if (!os_dev)
+
+  /* The same applies to /dev/evms directory (for EVMS volumes).  */
+  if (! os_dev)
+    os_dev = find_root_device ("/dev/evms", st.st_dev);
+
+  if (! os_dev)
 #endif
     {
       /* This might be truly slow, but is there any better way?  */