]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2008-06-16 Robert Millan <rmh@aybabtu.com>
authorrobertmh <robertmh@localhost>
Mon, 16 Jun 2008 20:45:21 +0000 (20:45 +0000)
committerrobertmh <robertmh@localhost>
Mon, 16 Jun 2008 20:45:21 +0000 (20:45 +0000)
        * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
        I2O devices.
        Patch from Sven Mueller <sven@debian.org>.

ChangeLog
util/biosdisk.c

index 2ef74c20f8e6dfe50e095ec57e64e93ceb4de111..685d081dc9a68b17a7e68e056f2b71424963bfdd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-16  Robert Millan  <rmh@aybabtu.com>
+
+       * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
+       I2O devices.
+       Patch from Sven Mueller <sven@debian.org>.
+
 2008-06-16  Robert Millan  <rmh@aybabtu.com>
 
        * util/update-grub.in: Check for $EUID instead of $UID.
index 90df4f1ef5df401154d3333a6b6cfbee576faf26..d78a69f77443439d0c275769d4a9d133b2607940 100644 (file)
@@ -657,6 +657,14 @@ convert_system_partition_to_system_disk (const char *os_dev)
          return path;
        }
       
+      /* If this is an I2O disk.  */
+      if (strncmp ("i2o/hd", p, sizeof ("i2o/hd") - 1) == 0)
+       {
+         /* /dev/i2o/hd[a-z]([0-9]+)? */
+         p[sizeof ("i2o/hda") - 1] = '\0';
+         return path;
+       }
+      
       /* If this is a MultiMediaCard (MMC).  */
       if (strncmp ("mmcblk", p, sizeof ("mmcblk") - 1) == 0)
        {