summaryrefslogtreecommitdiffstats
path: root/loader/loader.c
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-12-19 19:38:21 +0000
committerErik Troan <ewt@redhat.com>2000-12-19 19:38:21 +0000
commit56cbbfa06f412b612d31a9bfbf14e552a72b197d (patch)
treea781b2b745f0ff89aa32d09c7921e45b2e3f26d0 /loader/loader.c
parent9228f8e3e885b3989cfb0c31237d6072389ed57c (diff)
downloadanaconda-56cbbfa06f412b612d31a9bfbf14e552a72b197d.tar.gz
anaconda-56cbbfa06f412b612d31a9bfbf14e552a72b197d.tar.xz
anaconda-56cbbfa06f412b612d31a9bfbf14e552a72b197d.zip
moved ide initialization around
Diffstat (limited to 'loader/loader.c')
-rw-r--r--loader/loader.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/loader/loader.c b/loader/loader.c
index 2bf8c672d..36786735d 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -2442,7 +2442,7 @@ static void ideSetup(moduleList modLoaded, moduleDeps modDeps,
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);
@@ -2553,16 +2553,20 @@ int main(int argc, char ** argv) {
openLog(FL_TESTING(flags));
- setFloppyDevice(flags);
-
kd = kdInit();
mlReadLoadedList(&modLoaded);
modDeps = mlNewDeps();
mlLoadDeps(&modDeps, "/modules/modules.dep");
- /* Note we *always* do this. If you could avoid this you could get
- a system w/o USB keyboard support, which would be bad. */
- usbInitialize(modLoaded, modDeps, modInfo, flags);
+ if (!continuing) {
+ ideSetup(modLoaded, modDeps, modInfo, flags, &kd);
+
+ /* Note we *always* do this. If you could avoid this you could get
+ a system w/o USB keyboard support, which would be bad. */
+ usbInitialize(modLoaded, modDeps, modInfo, flags);
+ }
+
+ setFloppyDevice(flags);
/* We must look for cards which require the agpgart module */
agpgartInitialize(modLoaded, modDeps, modInfo, flags);
@@ -2612,10 +2616,6 @@ int main(int argc, char ** argv) {
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, &kd);
-
busProbe(modInfo, modLoaded, modDeps, probeOnly, &kd, flags);
if (probeOnly) exit(0);
}
@@ -2718,6 +2718,11 @@ int main(int argc, char ** argv) {
if (ksFile)
kickstartDevices(&kd, modInfo, modLoaded, &modDeps, flags);
+ /* We may already have these modules loaded, but trying again won't
+ hurt. */
+ ideSetup(modLoaded, modDeps, modInfo, flags, &kd);
+
+
busProbe(modInfo, modLoaded, modDeps, 0, &kd, flags);
if (((access("/proc/bus/pci/devices", X_OK) &&
@@ -2751,10 +2756,6 @@ int main(int argc, char ** argv) {
}
}
- /* We may already have these modules loaded, but trying again won't
- hurt. */
- ideSetup(modLoaded, modDeps, modInfo, flags, &kd);
-
mlLoadModule("raid0", NULL, modLoaded, modDeps, NULL, modInfo, flags);
mlLoadModule("raid1", NULL, modLoaded, modDeps, NULL, modInfo, flags);
mlLoadModule("raid5", NULL, modLoaded, modDeps, NULL, modInfo, flags);