mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-26 00:59:55 +00:00
* disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
devices, and do not traverse down under controller nodes.
This commit is contained in:
1 parent
8aadec43ee
commit
9554b15eac
2 files changed
+5
-6
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user