diff options
author | Mike Fulbright <msf@redhat.com> | 2001-04-04 21:03:53 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-04-04 21:03:53 +0000 |
commit | 17ca67e561a29698f7351a3027e2674bd70e0f4d (patch) | |
tree | 06f7d04302d2e00ecbe8ad4940bd2f13bef7d0aa /anaconda | |
parent | 63ebeff438ea90e8dbc9cdf30f70948179f23874 (diff) | |
download | anaconda-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-x | anaconda | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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) |