From bf6f68f96fba7b2d9d4c233ec32e654d54c3934f Mon Sep 17 00:00:00 2001 From: Stefan Assmann Date: Thu, 29 Jan 2009 10:51:25 +0000 Subject: [PATCH] Add an enhancement to deal with configurations in /ppc/bootinfo.txt like boot &device;:1,\suseboot\yaboot.ibm. 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 git-svn-id: svn://coreboot.org/openbios/openbios-devel@429 f158a5a8-5612-0410-a976-696ce0be7e32 --- arch/ppc/qemu/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/ppc/qemu/main.c b/arch/ppc/qemu/main.c index 5b29f5c..029acc2 100644 --- a/arch/ppc/qemu/main.c +++ b/arch/ppc/qemu/main.c @@ -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);