summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-08-31 01:50:49 +0000
committerErik Troan <ewt@redhat.com>1999-08-31 01:50:49 +0000
commit32b1310faebf4920eca55d470ad1ebc4fc3c993f (patch)
tree63c808cd408825eda7fd39a0e1b480666c35cdc6 /anaconda
parent23474f62a459bcb70ab814f67279409e028a28e2 (diff)
downloadanaconda-32b1310faebf4920eca55d470ad1ebc4fc3c993f.tar.gz
anaconda-32b1310faebf4920eca55d470ad1ebc4fc3c993f.tar.xz
anaconda-32b1310faebf4920eca55d470ad1ebc4fc3c993f.zip
support kickstarts
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda16
1 files changed, 13 insertions, 3 deletions
diff --git a/anaconda b/anaconda
index e899543f9..8cd446646 100755
--- a/anaconda
+++ b/anaconda
@@ -4,7 +4,6 @@ import sys, getopt, os
import gettext
import traceback
import string
-from installclass import CustomInstall
setverPath = None
@@ -14,7 +13,7 @@ _ = gettext.gettext
(args, extra) = getopt.getopt(sys.argv[1:], 'GTtdr:fm:',
[ 'gui', 'text', 'test', 'debug', 'method=', 'rootpath=',
- 'testpath=', 'mountfs', 'traceonly' ])
+ 'testpath=', 'mountfs', 'traceonly', 'kickstart=' ])
# remove the arguments - gnome_init doesn't understand them
for arg in sys.argv[1:]:
@@ -31,9 +30,11 @@ mode = 'g'
method = None
traceOnly = 0
mouseInfo = None
+kickstart = None
for n in args:
(str, arg) = n
+
if (str == '-G' or str == '--gui'):
mode = 'g'
elif (str == '-T' or str == '--text'):
@@ -44,6 +45,8 @@ for n in args:
method = arg
elif (str == '-d' or str == '--debug'):
debug = 1
+ elif (str == '--kickstart'):
+ kickstart = arg
elif (str == '-r' or str == '--rootpath'):
rootPath = arg
localInstall = 1
@@ -83,6 +86,8 @@ import rpm
import lilo
from todo import ToDo
import isys
+from installclass import CustomInstall
+from kickstart import Kickstart
if (mode == 'g' and not os.environ.has_key('DISPLAY')):
import xserver
@@ -154,10 +159,15 @@ if test:
if forceMount:
setupFilesystems = 1
+if kickstart:
+ instClass = Kickstart(kickstart)
+else:
+ instClass = CustomInstall()
+
try:
todo = ToDo(intf, method, rootPath, installSystem = installPackages,
setupFilesystems = setupFilesystems, mouse = mouseInfo,
- instClass = CustomInstall())
+ instClass = instClass)
intf.run(todo, test = test)
except:
(type, value, tb) = sys.exc_info()