summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-07-16 20:42:30 +0000
committerChris Lumens <clumens@redhat.com>2007-07-16 20:42:30 +0000
commitfc86452e1774a7438681a0e80f75242cace69e1d (patch)
treef42bed138e3ff97fc0b524ae9d11e961bf835d63 /anaconda
parentfdb52e39cd4ba4f4987f5ae8170a6b77956f08f2 (diff)
downloadanaconda-fc86452e1774a7438681a0e80f75242cace69e1d.tar.gz
anaconda-fc86452e1774a7438681a0e80f75242cace69e1d.tar.xz
anaconda-fc86452e1774a7438681a0e80f75242cace69e1d.zip
Moved the pullRemainingKickstartConfig functionality into pykickstart.
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda22
1 files changed, 9 insertions, 13 deletions
diff --git a/anaconda b/anaconda
index 9daf0c8ab..3d1b8622f 100755
--- a/anaconda
+++ b/anaconda
@@ -247,23 +247,19 @@ def parseOptions():
return op.parse_args()
def setVNCFromKickstart(opts):
- from kickstart import pullRemainingKickstartConfig, KickstartError
- from kickstart import VNCHandler
- from pykickstart.parser import KickstartParser
+ from kickstart import KickstartError, VNCHandler
+ from pykickstart.parser import KickstartParser, preprocessKickstart
global vncpassword, vncconnecthost, vncconnectport
try:
- rc = pullRemainingKickstartConfig(opts.ksfile)
+ opts.ksfile = preprocessKickstart(opts.ksfile)
except KickstartError, msg:
- rc = msg
+ stdoutLog.critical(_("Error processing %%ksappend lines: %s") % e)
+ sys.exit(1)
except Exception, e:
- log.error("Unknown error grabbing ks.cfg: %s" %(e,))
- rc = _("Unknown Error")
-
- if rc is not None:
- stdoutLog.critical(_("Error pulling second part of kickstart config: %s!") % rc)
- sys.exit(1)
+ stdoutLog.critical(_("Unknown error processing %%ksappend lines: %s") % e)
+ sys.exit(1)
# now see if they enabled vnc via the kickstart file. Note that command
# line options for password, connect host and port override values in
@@ -834,7 +830,7 @@ if __name__ == "__main__":
got_bad_edid = True
opts.display_mode = 't'
- if opts.display_mode == 't' and graphical_failed and not opts.ksfile:
+ if opts.display_mode == 't' and graphical_failed and not anaconda.isKickstart:
ret = vnc.askVncWindow()
if ret != -1:
opts.display_mode = 'g'
@@ -850,7 +846,7 @@ if __name__ == "__main__":
if got_bad_edid:
msg = "anaconda was unable to detect your monitor, possibly due to the presence of a KVM. The installation will proceed in text mode. Please run system-config-display after installation to configure your monitor."
- if opts.ksfile:
+ if anaconda.isKickstart:
log.warning(msg)
else:
anaconda.intf.messageWindow("Unknown monitor", msg)