]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
authorhollisb <hollisb@localhost>
Fri, 15 Oct 2004 20:04:28 +0000 (20:04 +0000)
committerhollisb <hollisb@localhost>
Fri, 15 Oct 2004 20:04:28 +0000 (20:04 +0000)
* 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.

ChangeLog
disk/powerpc/ieee1275/ofdisk.c

index c88a9a99e935aaa672ac2b24031ec95d2cc597d7..011a38b044b8e4b4cf129a1b90997e963dc66a86 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-10-15  Hollis Blanchard  <hollis@penguinppc.org>
+
+       * 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  <hollis@penguinppc.org>
 
        * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
index 10334499d45b3bf8a2a6a4340857bcfc2b629343..7d436a55396ed44220cf16b180563f53182cbd31 100644 (file)
@@ -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)
     {