]> git.ozlabs.org Git - yaboot.git/blobdiff - second/fs_ext2.c
long append="..." causes yaboot to reject entire yaboot.conf (MAX_TOKEN too small)
[yaboot.git] / second / fs_ext2.c
index 3240ce215ac802c6164f459f2f06df7e67c937d0..67571f28fadda668e967cde6e263a2ce37dda0a8 100644 (file)
@@ -35,6 +35,7 @@
 #include "fs.h"
 #include "errors.h"
 #include "debug.h"
 #include "fs.h"
 #include "errors.h"
 #include "debug.h"
+#include "bootinfo.h"
 
 #define FAST_VERSION
 #define MAX_READ_RANGE 256
 
 #define FAST_VERSION
 #define MAX_READ_RANGE 256
@@ -170,7 +171,8 @@ ext2_open(  struct boot_file_t*     file,
 
      /* Open the OF device for the entire disk */
      strncpy(buffer, dev_name, 1020);
 
      /* Open the OF device for the entire disk */
      strncpy(buffer, dev_name, 1020);
-     strcat(buffer, ":0");
+     if (_machine != _MACH_bplan)
+         strcat(buffer, ":0");
 
      DEBUG_F("<%s>\n", buffer);
 
 
      DEBUG_F("<%s>\n", buffer);