diff options
author | Mike Fulbright <msf@redhat.com> | 2003-02-07 18:14:11 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2003-02-07 18:14:11 +0000 |
commit | 7647e0dcfce39c508478b1cd284abefdb2a9ca73 (patch) | |
tree | 7a2b420af6ee2e96febbf4e77a10b3e22c79a15c /loader2/hardware.c | |
parent | 027238f217094e69d244a2688e9d7ee63e9af2cd (diff) | |
download | anaconda-7647e0dcfce39c508478b1cd284abefdb2a9ca73.tar.gz anaconda-7647e0dcfce39c508478b1cd284abefdb2a9ca73.tar.xz anaconda-7647e0dcfce39c508478b1cd284abefdb2a9ca73.zip |
move loading of st.o for rescue mode tape support to loader
Diffstat (limited to 'loader2/hardware.c')
-rw-r--r-- | loader2/hardware.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/loader2/hardware.c b/loader2/hardware.c index ce1f811b4..2f3d879ce 100644 --- a/loader2/hardware.c +++ b/loader2/hardware.c @@ -134,6 +134,34 @@ int agpgartInitialize(moduleList modLoaded, moduleDeps modDeps, return 0; } +int scsiTapeInitialize(moduleList modLoaded, moduleDeps modDeps, + moduleInfoSet modInfo, int flags) { + struct device ** devices; + + if (FL_TESTING(flags)) return 0; + + logMessage("looking for scsi tape devices"); + + devices = probeDevices(CLASS_TAPE, BUS_SCSI, PROBE_ALL); + + if (!devices) { + logMessage("no scsi tape devices found"); + return 0; + } + + logMessage("scsi tape device(s) found, loading st.o"); + + if (mlLoadModuleSetLocation("st", modLoaded, modDeps, + modInfo, flags, + secondStageModuleLocation)) { + logMessage("failed to insert st module"); + return 1; + } + + return 0; +} + + /* This loads the necessary parallel port drivers for printers so that kudzu can autodetect and setup printers in post install*/ void initializeParallelPort(moduleList modLoaded, moduleDeps modDeps, |