j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: laurent Date: 2009-01-29 11:51:25 +0100 (Thu, 29 Jan 2009) New Revision: 429
Modified: openbios-devel/arch/ppc/qemu/main.c Log: 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
Modified: openbios-devel/arch/ppc/qemu/main.c =================================================================== --- openbios-devel/arch/ppc/qemu/main.c 2009-01-26 17:09:21 UTC (rev 428) +++ openbios-devel/arch/ppc/qemu/main.c 2009-01-29 10:51:25 UTC (rev 429) @@ -208,6 +208,8 @@ 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);