Index: branches/azimutz/CleanCut/i386/libsaio/stringTable.c =================================================================== --- branches/azimutz/CleanCut/i386/libsaio/stringTable.c (revision 347) +++ branches/azimutz/CleanCut/i386/libsaio/stringTable.c (revision 348) @@ -650,8 +650,19 @@ */ int loadOverrideConfig(config_file_t *config) { - int count, ret, fd; + char dirSpecBplist[128] = ""; //Azi:alloc - reminder + const char *override_pathname = NULL; + int count, ret, fd, len = 0; + // Take in account user overriding the override :P + if (getValueForKey(kTestConfigKey, &override_pathname, &len, &bootInfo->bootConfig)) + { + // Specify a path to a file, e.g. config=/Extra/test.plist + strcpy(dirSpecBplist, override_pathname); + fd = open(dirSpecBplist, 0); + if (fd >= 0) goto success_fd; + } + success_fd: if (fd >= 0) Index: branches/azimutz/CleanCut/i386/boot2/boot.h =================================================================== --- branches/azimutz/CleanCut/i386/boot2/boot.h (revision 347) +++ branches/azimutz/CleanCut/i386/boot2/boot.h (revision 348) @@ -96,6 +96,7 @@ #define kEHCIhard "EHCIhard" // usb.c #define kDefaultPartition "Default Partition" // sys.c #define kMD0Image "md0" // ramdisk.h +#define kTestConfigKey "config" // stringTable.c #define kCanOverrideKey "CanOverride" // stringTable.c /* Index: branches/azimutz/CleanCut/i386/boot2/options.c =================================================================== --- branches/azimutz/CleanCut/i386/boot2/options.c (revision 347) +++ branches/azimutz/CleanCut/i386/boot2/options.c (revision 348) @@ -1169,9 +1169,9 @@ // trying to load the config file anyway. else return -1; - + + //Azi: implemented at loadOverrideConfig. // Load config table specified by the user, or use the default. - //Azi: not working. //if (!getValueForBootKey(cp, "config", &val, &cnt)) { // val = 0; // cnt = 0; @@ -1179,7 +1179,7 @@ // Load com.apple.Boot.plist from the selected volume // and use its contents to override default bootConfig. - // This is not a mandatory opeartion anymore. + // This is not a mandatory operation anymore. loadOverrideConfig(&bootInfo->overrideConfig);