diff options
author | Erik Troan <ewt@redhat.com> | 2002-02-15 16:33:49 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2002-02-15 16:33:49 +0000 |
commit | 5f06506b6871645bbd063f9ae96c354090eaded7 (patch) | |
tree | 1005bc37afb56397a913e4778072d6e138f91bce /loader | |
parent | ae0aad2587a03d8f23dc50566f05a5a411052d24 (diff) | |
download | anaconda-5f06506b6871645bbd063f9ae96c354090eaded7.tar.gz anaconda-5f06506b6871645bbd063f9ae96c354090eaded7.tar.xz anaconda-5f06506b6871645bbd063f9ae96c354090eaded7.zip |
warn when we don't find any harddrives -- this hasn't been tested (my local
install tree is broken)
Diffstat (limited to 'loader')
-rw-r--r-- | loader/loader.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/loader/loader.c b/loader/loader.c index 4cb351602..67190ebe2 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -3199,6 +3199,23 @@ int main(int argc, char ** argv) { busProbe(modInfo, modLoaded, modDeps, 0, &kd, flags); + /* look for hard drives; if there aren't any warn the user and + let him add drivers manually */ + for (i = 0; i < kd.numKnown; i++) + if (kd.known[i].class == CLASS_HD) break; + + if (i == kd.numKnown) { + int rc; + + startNewt(flags); + rc = newtWinChoice(_("Warning"), _("Yes"), _("No"), + _("No hard drives have been found. You probably need to " + "manually choose device drivers for the installation to " + "succeed. Would you like to select drivers now?")); + + if (rc != 2) flags |= LOADER_FLAGS_ISA; + } + if (((access("/proc/bus/pci/devices", R_OK) && access("/proc/openprom", R_OK)) || FL_ISA(flags) || FL_NOPROBE(flags)) && !ksFile) { |