]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
authordavem <davem@localhost>
Mon, 4 May 2009 23:05:12 +0000 (23:05 +0000)
committerdavem <davem@localhost>
Mon, 4 May 2009 23:05:12 +0000 (23:05 +0000)
devices, and do not traverse down under controller nodes.

ChangeLog
disk/ieee1275/ofdisk.c

index 46c055e35976af2d87c6dfb039cd60c3d2419673..26616ab3b59487acd70134614fb7018984b9255c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,9 @@
 
        * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
 
+       * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
+       devices, and do not traverse down under controller nodes.
+
 2009-05-04  Robert Millan  <rmh.grub@aybabtu.com>
 
        * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
index e2c7867e6e8c08be033114461ab5ab246384676b..1620fee8361a7b35e52c503b8e286a8ab3ea3b27 100644 (file)
@@ -106,13 +106,9 @@ grub_ofdisk_iterate (int (*hook) (const char *name))
            }
        }
 
-      if (! grub_strcmp (alias->type, "block"))
+      if (! grub_strcmp (alias->type, "block") &&
+         grub_strcmp (alias->name, "cdrom"))
        ret = hook (alias->name);
-      else if ((! grub_strcmp (alias->type, "scsi"))
-              || (! grub_strcmp (alias->type, "ide"))
-              || (! grub_strcmp (alias->type, "ata")))
-       /* Search for block-type children of these bus controllers.  */
-       ret = grub_children_iterate (alias->name, dev_iterate);
       return ret;
     }