Index: branches/mozodojo/i386/boot2/boot.c =================================================================== --- branches/mozodojo/i386/boot2/boot.c (revision 1232) +++ branches/mozodojo/i386/boot2/boot.c (revision 1233) @@ -606,7 +606,14 @@ verbose("Kernel cache did not load %s\n ", bootFile); } - bootFile = bootInfo->bootFile; + if (checkOSVersion("10.7")) + { + bootFile = gBootKernelCacheFile; + } + else + { + sprintf(bootFile, "\%s", bootInfo->bootFile); + } // Try to load kernel image from alternate locations on boot helper partitions. sprintf(bootFileSpec, "com.apple.boot.P%s", bootFile); @@ -622,7 +629,7 @@ if (ret == -1) { // No alternate location found, using the original kernel image path. - strcpy(bootFileSpec, bootFile); + strcpy(bootFileSpec, bootInfo->bootFile); } } }