Mac OS 9's bootscript uses '\r' a lot. These interfere with how OpenBIOS functions. So the solution is to translate them to '\n' characters. This will allow Mac OS 9 to boot.
Signed-off-by: John Arbuckle programmingkidx@gmail.com
These are the operating systems I used to test my patch. - Mac OS 10.4.0 - Mac OS 9.2 - Fedora Linux 17 - Debian Linux 5
No regressions have been detected.
Index: libopenbios/bootinfo_load.c =================================================================== --- libopenbios/bootinfo_load.c (revision 1391) +++ libopenbios/bootinfo_load.c (working copy) @@ -190,7 +190,10 @@ while (current < size) {
c = base[current++]; - + if(c == '\r') { + c = '\n'; + } + if (c == '<') { script = 0; tag = 1;