]> git.ozlabs.org Git - yaboot.git/blobdiff - second/yaboot.c
long append="..." causes yaboot to reject entire yaboot.conf (MAX_TOKEN too small)
[yaboot.git] / second / yaboot.c
index 3d93275018027376cafffb685104a0fbfea586d0..3db7b4fe03f04b42c67adb703748246dcb37a066 100644 (file)
@@ -1606,7 +1606,7 @@ is_elf64(loadinfo_t *loadinfo)
             e->e_ident[EI_MAG3]  == ELFMAG3        &&
             e->e_ident[EI_CLASS] == ELFCLASS64  &&
             e->e_ident[EI_DATA]  == ELFDATA2MSB &&
-            e->e_type            == ET_EXEC        &&
+            (e->e_type == ET_EXEC || e->e_type == ET_DYN) &&
             e->e_machine         == EM_PPC64);
 }
 
@@ -1750,7 +1750,7 @@ yaboot_main(void)
          prom_printf("%s: Unable to parse\n", bootdevice);
          return -1;
      }
-     if (_machine == _MACH_bplan)
+     if (_machine == _MACH_bplan && !conf_given)
         boot.part++;
      DEBUG_F("After parse_device_path: dev=%s, part=%d, file=%s\n",
             boot.dev, boot.part, boot.file);