X-Git-Url: https://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=second%2Fpartition.c;h=9a7fe7394b683e2e8113852c8a105c4ae3a189f3;hp=0cb8ae85f1768bb7aef755c6ef37f64b64f5f168;hb=082b8310e3f92ea8da0b7011549bd86c9fd4ce95;hpb=afaf577190536fe8e15fb5b2ed8372dbda82e7b1 diff --git a/second/partition.c b/second/partition.c index 0cb8ae8..9a7fe73 100644 --- a/second/partition.c +++ b/second/partition.c @@ -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);