Chameleon

Chameleon Commit Details

Date:2010-08-10 06:08:05 (9 years 14 days ago)
Author:Azimutz
Commit:340
Parents: 339
Message:Ok.. as i mentioned about the "drivers" override key, this stuff is mostly based on the search algo on search_and_get_acpi_fd, acpi_patcher.c; i just added 2+2 and got 5 in return :) No need to check for ramdisk presence anymore, courtesy of Zef, rev 264. Why check the root of the ramdisk (rd) instead of /Extra? Well, rd's can be aliased as bt(0,0) or not, and the behavior is pretty diff in both situations; a "normal" rd can load "single" files and the paths to it start with rd(0,0).
Changes:
M/branches/azimutz/CleanCut/i386/boot2/drivers.c

File differences

branches/azimutz/CleanCut/i386/boot2/drivers.c
194194
195195
196196
197
198
199
200
201
197
198
199
202200
203201
204202
}
// First try to load Extra extensions from the ramdisk if isn't aliased as bt(0,0).
if (gRAMDiskVolume && !gRAMDiskBTAliased)
{
strcpy(dirSpecExtra, "rd(0,0)/Extra/");
FileLoadDrivers(dirSpecExtra, 0);
}
strcpy(dirSpecExtra, "rd(0,0)/"); // check it's "root".
fd = FileLoadDrivers(dirSpecExtra, 0);
if (fd >= 0) goto success_fd;
// Next try to load Extra extensions from the selected root partition.
strcpy(dirSpecExtra, "/Extra/");

Archive Download the corresponding diff file

Revision: 340