summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-04-04 21:03:53 +0000
committerMike Fulbright <msf@redhat.com>2001-04-04 21:03:53 +0000
commit17ca67e561a29698f7351a3027e2674bd70e0f4d (patch)
tree06f7d04302d2e00ecbe8ad4940bd2f13bef7d0aa /anaconda
parent63ebeff438ea90e8dbc9cdf30f70948179f23874 (diff)
downloadanaconda-17ca67e561a29698f7351a3027e2674bd70e0f4d.tar.gz
anaconda-17ca67e561a29698f7351a3027e2674bd70e0f4d.tar.xz
anaconda-17ca67e561a29698f7351a3027e2674bd70e0f4d.zip
allow use of 'nomount' commandline option to prevent rescue mode from trying to mount root directory.
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda7
1 files changed, 5 insertions, 2 deletions
diff --git a/anaconda b/anaconda
index b5dd2b64c..bcea8a682 100755
--- a/anaconda
+++ b/anaconda
@@ -55,7 +55,7 @@ try:
'method=', 'rootpath=', 'pcic=', "overhead=",
'testpath=', 'mountfs', 'traceonly', 'kickstart=',
'lang=', 'keymap=', 'kbdtype=', 'module=', 'class=',
- 'expert', 'serial', 'lowres', 'nofb', 'rescue'])
+ 'expert', 'serial', 'lowres', 'nofb', 'rescue', 'nomount'])
except TypeError, msg:
print "Error:", msg
sys.exit(-1)
@@ -112,6 +112,7 @@ localInstall = 0
reconfigOnly = 0
nofallback = 0
rescue = 0
+rescue_nomount = 0
overhead = 0
runres = '800x600'
nofbmode = 0
@@ -157,6 +158,8 @@ for n in args:
overhead = int(arg)
elif (str == '--rescue'):
progmode = 'rescue'
+ elif (str == "--nomount"):
+ rescue_nomount = 1
elif (str == '--nofallback'):
nofallback = 1
elif (str == '--module'):
@@ -211,7 +214,7 @@ if (progmode == None):
if (progmode == 'rescue'):
import rescue
- rescue.runRescue(method, serial)
+ rescue.runRescue(method, serial, not rescue_nomount)
# shouldn't get back here
sys.exit(1)