summaryrefslogtreecommitdiffstats
path: root/rescue.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-01-09 22:13:51 +0000
committerMike Fulbright <msf@redhat.com>2003-01-09 22:13:51 +0000
commit37d906ec3e851c53a98a511787382f73f0afbfc0 (patch)
treea1f5aa21013fbbaef7eb80142a37019bf953b614 /rescue.py
parent616dec1f41d4c60041b5eabcbe6e9d702e86eb6b (diff)
downloadanaconda-37d906ec3e851c53a98a511787382f73f0afbfc0.tar.gz
anaconda-37d906ec3e851c53a98a511787382f73f0afbfc0.tar.xz
anaconda-37d906ec3e851c53a98a511787382f73f0afbfc0.zip
load st.o if we find tape drives
Diffstat (limited to 'rescue.py')
-rw-r--r--rescue.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/rescue.py b/rescue.py
index 402a079bf..b8d629072 100644
--- a/rescue.py
+++ b/rescue.py
@@ -13,6 +13,7 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
+import kudzu
import upgrade
from snack import *
from constants_text import *
@@ -147,6 +148,12 @@ def runRescue(instPath, mountroot, id):
screen.finish()
+ # load st.o if they have any tape drives
+ tapes = kudzu.probe(kudzu.CLASS_TAPE, kudzu.BUS_SCSI, kudzu.PROBE_ALL)
+ if len(tapes) > 0:
+ log("Loading st.o because tape drives detected")
+ os.system("/bin/modprobe st.o")
+
if (not mountroot):
print
print _("When finished please exit from the shell and your "