Add an enhancement to deal with configurations in /ppc/bootinfo.txt like

<boot-script>boot &device;:1,\suseboot\yaboot.ibm</boot-script>.
This would evaluate to boot cd:0,1\suseboot\yaboot.ibm which results
in a file not found error (seen on many openSUSE ppc media).

With this patch the above will evaluate to boot cd:0,\suseboot\yaboot.ibm
and yaboot will load.

Signed-off-by: Stefan Assmann <sassmann@suse.de>



git-svn-id: svn://coreboot.org/openbios/openbios-devel@429 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Stefan Assmann
2009-01-29 10:51:25 +00:00
committed by Laurent Vivier
parent 18f34eca50
commit bf6f68f96f

View File

@@ -208,6 +208,8 @@ try_bootinfo(const char *path)
fword("2drop");
right = pop_fstr_copy();
left = pop_fstr_copy();
while (right[0] != '\\' && right[0] != '\0')
right++;
snprintf(bootscript, sizeof(bootscript), "%s%s,%s", left, path, right);
ELF_DPRINTF("fixed bootscript %s\n", bootscript);