diff options
author | Mike Fulbright <msf@redhat.com> | 1999-12-06 17:31:20 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 1999-12-06 17:31:20 +0000 |
commit | c646c48977de6d2b5b61612303f7c4533db61f00 (patch) | |
tree | 2f9c154e7c131e60db5f54e4fcc394143f63e1bf /anaconda | |
parent | 939ba3b744931d851d5716b265dc58d4b32b585f (diff) | |
download | anaconda-c646c48977de6d2b5b61612303f7c4533db61f00.tar.gz anaconda-c646c48977de6d2b5b61612303f7c4533db61f00.tar.xz anaconda-c646c48977de6d2b5b61612303f7c4533db61f00.zip |
anaconda: change to require either --install or --reconfig to specify mode
loader/loader.c: Put --install on anacondaArgs always
reconfig.init: Invoke anaconda with the --reconfig command line arg
Dr Mike <drmike@redhat.com>
Diffstat (limited to 'anaconda')
-rwxr-xr-x | anaconda | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -32,8 +32,9 @@ gettext.bindtextdomain("anaconda", "/usr/share/locale") gettext.textdomain("anaconda") _ = gettext.gettext -(args, extra) = isys.getopt(sys.argv[1:], 'GTRtdr:fm:', - [ 'gui', 'text', 'reconfig', 'test', 'debug', 'method=', 'rootpath=', +(args, extra) = isys.getopt(sys.argv[1:], 'GITRtdr:fm:', + [ 'gui', 'install', 'text', 'reconfig', 'test', 'debug', + 'method=', 'rootpath=', 'testpath=', 'mountfs', 'traceonly', 'kickstart=', 'lang=', 'keymap=', 'kbdtype=', 'module=', 'expert', 'serial' ]) @@ -82,6 +83,8 @@ reconfigOnly = 0 # kbdtype - type of keyboard (84 key, 101 key, etc) # kickstart - ? # mouseInfo - type of mouse +# progmode - either 'reconfig' or 'install' +# x = None lang = None method = None @@ -89,6 +92,7 @@ keymap = None kbdtpye = None kickstart = None mouseInfo = None +progmode = None # # parse off command line arguments @@ -98,10 +102,14 @@ for n in args: if (str == '-G' or str == '--gui'): display_mode = 'g' + elif (str == '-I' or str == '--install'): + reconfigOnly = 0 + progmode = 'install' elif (str == '-T' or str == '--text'): display_mode = 't' elif (str == '-R' or str == '--reconfig'): reconfigOnly = 1 + progmode = 'reconfig' elif (str == '-t' or str == '--test'): test = 1 elif (str == '--module'): @@ -138,6 +146,14 @@ if (execname == "anaconda-reconfig"): print "overriding to reconfig mode based on script name" reconfigOnly = 1 + +# +# must specify install or reconfig mode +# +if (progmode == None) + print "Must specify either --reconfig or --install for program mode" + sys.exit(1) + # # if not just reconfiguring box, must have install method # |