diff --git a/ChangeLog b/ChangeLog index c88a9a99e..011a38b04 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-10-15 Hollis Blanchard + + * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not + append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is + set in grub_ieee1275_flags. + 2004-10-14 Hollis Blanchard * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function diff --git a/disk/powerpc/ieee1275/ofdisk.c b/disk/powerpc/ieee1275/ofdisk.c index 10334499d..7d436a553 100644 --- a/disk/powerpc/ieee1275/ofdisk.c +++ b/disk/powerpc/ieee1275/ofdisk.c @@ -57,7 +57,9 @@ grub_ofdisk_open (const char *name, grub_disk_t disk) return grub_errno; /* To access the complete disk add `:0'. */ - grub_strcat (devpath, ":0"); + if (! (grub_ieee1275_flags & GRUB_IEEE1275_NO_PARTITION_0)) + grub_strcat (devpath, ":0"); + grub_ieee1275_open (devpath, &dev_ihandle); if (! dev_ihandle) {