summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-12-08 21:15:38 +0000
committerErik Troan <ewt@redhat.com>2000-12-08 21:15:38 +0000
commitf443e96dccd0480049dbf9600926d5a4363ab987 (patch)
tree7a8c69d57c767437f2e0bd31401ca23d88fed5ac /loader
parenta7947fda5f448adb9e6102288a8c41620975c2b0 (diff)
downloadanaconda-f443e96dccd0480049dbf9600926d5a4363ab987.tar.gz
anaconda-f443e96dccd0480049dbf9600926d5a4363ab987.tar.xz
anaconda-f443e96dccd0480049dbf9600926d5a4363ab987.zip
support modular ide
Diffstat (limited to 'loader')
-rw-r--r--loader/loader.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/loader/loader.c b/loader/loader.c
index e84d4ca48..971a40cff 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -2436,6 +2436,21 @@ static int agpgartInitialize(moduleList modLoaded, moduleDeps modDeps,
return 0;
}
+static void ideSetup(moduleList modLoaded, moduleDeps modDeps,
+ moduleInfoSet modInfo, int flags) {
+ startNewt(flags);
+
+ winStatus(40, 3, _("IDE"), _("Initializing IDE modules..."));
+
+ mlLoadModule("ide-mod", NULL, modLoaded, modDeps, NULL, modInfo, flags);
+ mlLoadModule("ide-probe-mod", NULL, modLoaded, modDeps, NULL, modInfo,
+ flags);
+ mlLoadModule("ide-disk", NULL, modLoaded, modDeps, NULL, modInfo,
+ flags);
+ mlLoadModule("ide-cd", NULL, modLoaded, modDeps, NULL, modInfo, flags);
+
+ newtPopWindow();
+}
int main(int argc, char ** argv) {
char ** argptr;
@@ -2593,6 +2608,10 @@ int main(int argc, char ** argv) {
devLoadDriverDisk(modInfo, modLoaded, &modDeps, flags, 1, 1,
floppyDevice);
}
+
+ /* Load the ide modules after letting the user specify a driver disk.
+ This let's them override the ide drivers if they like. */
+ ideSetup(modLoaded, modDeps, modInfo, flags);
busProbe(modInfo, modLoaded, modDeps, probeOnly, &kd, flags);
if (probeOnly) exit(0);
@@ -2637,7 +2656,6 @@ int main(int argc, char ** argv) {
url = doMountImage("/mnt/source", &kd, modInfo, modLoaded, &modDeps,
&lang, &keymap, &kbdtype,
flags);
-logMessage("found url image %s", url);
}
if (!FL_TESTING(flags)) {
@@ -2730,6 +2748,10 @@ logMessage("found url image %s", url);
}
}
+ /* We may already have these modules loaded, but trying again won't
+ hurt. */
+ ideSetup(modLoaded, modDeps, modInfo, flags);
+
mlLoadModule("raid0", NULL, modLoaded, modDeps, NULL, modInfo, flags);
mlLoadModule("raid1", NULL, modLoaded, modDeps, NULL, modInfo, flags);
mlLoadModule("raid5", NULL, modLoaded, modDeps, NULL, modInfo, flags);