summaryrefslogtreecommitdiffstats
path: root/rescue.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-06-27 08:58:59 -0400
committerChris Lumens <clumens@redhat.com>2008-06-27 08:59:16 -0400
commitadfa32b7ae12e10545c927f71655aaef950013a0 (patch)
treeb2340fed7a16e93db0095d8b5e8a7c62ef89f6b6 /rescue.py
parentfad520677a93f6dfbc4af2c6b316f4184c745ad7 (diff)
downloadanaconda-adfa32b7ae12e10545c927f71655aaef950013a0.tar.gz
anaconda-adfa32b7ae12e10545c927f71655aaef950013a0.tar.xz
anaconda-adfa32b7ae12e10545c927f71655aaef950013a0.zip
Rescue mode no longer needs access to a methodstr (#453044).
Diffstat (limited to 'rescue.py')
-rw-r--r--rescue.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/rescue.py b/rescue.py
index f9e6a74f1..504d42824 100644
--- a/rescue.py
+++ b/rescue.py
@@ -131,15 +131,6 @@ def makeResolvConf(instPath):
f.write(buf)
f.close()
-# XXX
-# probably belongs somewhere else
-#
-def methodUsesNetworking(methodstr):
- for m in ['http://', 'ftp://', 'nfs:', 'nfsiso:']:
- if methodstr.startswith(m):
- return 1
- return 0
-
#
# Write out something useful for networking and start interfaces
#
@@ -221,7 +212,7 @@ def runRescue(anaconda, instClass):
pass
# see if they would like networking enabled
- if not methodUsesNetworking(anaconda.id.methodstr):
+ if not network.hasActiveNetDev():
screen = SnackScreen()
while 1: