Chameleon

Chameleon Commit Details

Date:2011-07-06 15:16:06 (8 years 1 month ago)
Author:Evan Lojewski
Commit:1131
Parents: 1130
Message:Allow overrides for kMKextCacheKey, kKernelCacheKey
Changes:
M/trunk/i386/boot2/boot.c
M/trunk/i386/boot2/options.c
M/trunk/i386/libsaio/stringTable.c

File differences

trunk/i386/libsaio/stringTable.c
502502
503503
504504
505
505
506506
507507
508508
override = true;
// NOTE: Values are defined by apple as being in com.apple.Boot.plist
// kMKextCacheKey, kKernelArchKey, kMKextCacheKey, kKernelCacheKey, kKernelNameKey, kKernelFlagsKey
// kHelperRootUUIDKey, kKernelArchKey, kMKextCacheKey, kKernelCacheKey, kKernelNameKey, kKernelFlagsKey
if (ret && (strcmp(key, kKernelNameKey) == 0) && (strcmp(overrideVal, "mach_kernel") == 0))
override = false;
trunk/i386/boot2/boot.c
491491
492492
493493
494
494
495495
496496
497497
getBoolForKey(kUseKernelCache, &usecache, &bootInfo->chameleonConfig);
if(usecache) {
if (getValueForKey(kKernelCacheKey, &val, &len, &bootInfo->chameleonConfig)) {
if (getValueForKey(kKernelCacheKey, &val, &len, &bootInfo->bootConfig)) {
if(val[0] == '\\')
{
len--;
trunk/i386/boot2/options.c
13221322
13231323
13241324
1325
1325
13261326
13271327
13281328
}
}
if ( getValueForKey( kMKextCacheKey, &val, &cnt, &bootInfo->chameleonConfig ) )
if ( getValueForKey( kMKextCacheKey, &val, &cnt, &bootInfo->bootConfig ) )
{
strlcpy(gMKextName, val, cnt + 1);
}

Archive Download the corresponding diff file

Revision: 1131