diff options
author | Mike Fulbright <msf@redhat.com> | 2003-05-05 21:34:55 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2003-05-05 21:34:55 +0000 |
commit | aff8c36e13993000dcf217ce64fa126194da0ad1 (patch) | |
tree | f51a06ae596ed0a904f700aed3abd1b5e8f45de4 /installclass.py | |
parent | 3660161e0b945aa22745bdff7fa7da4b07c84c89 (diff) | |
download | anaconda-aff8c36e13993000dcf217ce64fa126194da0ad1.tar.gz anaconda-aff8c36e13993000dcf217ce64fa126194da0ad1.tar.xz anaconda-aff8c36e13993000dcf217ce64fa126194da0ad1.zip |
dont prompt for rescue boot disk creation unless you have a floppy drive. Tested on machines with and without floppy drives.before-cambridge-monitor-query-change
Diffstat (limited to 'installclass.py')
-rw-r--r-- | installclass.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/installclass.py b/installclass.py index 083a6bd48..f33607776 100644 --- a/installclass.py +++ b/installclass.py @@ -150,6 +150,19 @@ class BaseInstallClass: if iutil.getArch() != "i386": dispatch.skipStep("bootdisk") dispatch.skipStep("bootloader") + + # see if we need to write out a rescue boot floppy + if iutil.getArch() == "i386": + import kudzu + try: + floppyDevices = len(kudzu.probe(kudzu.CLASS_FLOPPY, + kudzu.BUS_UNSPEC, + kudzu.PROBE_ALL)) + except: + floppyDevices = 0 + + if not floppyDevices: + dispatch.skipStep("bootdisk") if (iutil.getArch() == "alpha" or iutil.getArch() == "ia64" or iutil.getArch() == "sparc" or iutil.getArch() == "ppc"): |