summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-04-19 23:09:26 +0000
committerErik Troan <ewt@redhat.com>2000-04-19 23:09:26 +0000
commit720bab9828b91d769937b518de2b9378e407bf5d (patch)
treef9c005da87e651fd73842174293f99303bd95e11 /anaconda
parent12a30bbc32fff872333673beb9eb07df125d737a (diff)
downloadanaconda-720bab9828b91d769937b518de2b9378e407bf5d.tar.gz
anaconda-720bab9828b91d769937b518de2b9378e407bf5d.tar.xz
anaconda-720bab9828b91d769937b518de2b9378e407bf5d.zip
moved instantiation of kickstart up a bit
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda16
1 files changed, 8 insertions, 8 deletions
diff --git a/anaconda b/anaconda
index de137cc76..5f95c85ec 100755
--- a/anaconda
+++ b/anaconda
@@ -288,6 +288,14 @@ if not reconfigOnly:
if reconfigOnly and method != None:
print "Conflicting options: cannot reconfig and install simultaneously!\n"
sys.exit(1)
+
+if kickstart:
+ instClass = Kickstart(kickstart, serial)
+elif reconfigOnly:
+ instClass = ReconfigStation(expert)
+else:
+ instClass = DefaultInstall(expert)
+
intf = InstallInterface()
# set the default actions
@@ -303,14 +311,6 @@ if test:
if forceMount:
setupFilesystems = 1
-if kickstart:
- instClass = Kickstart(kickstart)
- os.unlink(kickstart)
-elif reconfigOnly:
- instClass = ReconfigStation(expert)
-else:
- instClass = DefaultInstall(expert)
-
if lang:
instClass.addToSkipList("language")
instClass.setLanguage(lang)