]> git.ozlabs.org Git - yaboot.git/blobdiff - second/partition.c
Fix partition numbering handling with bplan firmware
[yaboot.git] / second / partition.c
index 0cb8ae85f1768bb7aef755c6ef37f64b64f5f168..9a7fe7394b683e2e8113852c8a105c4ae3a189f3 100644 (file)
@@ -40,6 +40,7 @@
 #include "linux/iso_fs.h"
 #include "debug.h"
 #include "errors.h"
+#include "bootinfo.h"
 #include "byteorder.h"
 
 /* We currently don't check the partition type, some users
@@ -337,7 +338,8 @@ partitions_lookup(const char *device)
      unsigned int prom_blksize, iso_root_block;
 
      strncpy(block_buffer, device, 2040);
-     strcat(block_buffer, ":0");
+     if (_machine != _MACH_bplan)
+         strcat(block_buffer, ":0");
 
      /* Open device */
      disk = prom_open(block_buffer);