summaryrefslogtreecommitdiffstats
path: root/xsetup.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-01-26 22:34:04 +0000
committerChris Lumens <clumens@redhat.com>2007-01-26 22:34:04 +0000
commitdabe0baa04ef6ae07ad080543b79f0ac8a87fd71 (patch)
treea751cf9a2ce795e8f94cb74fa831007373607627 /xsetup.py
parentbf6e82648e88c1b99259e9184ffb795d7cfe871e (diff)
downloadanaconda-dabe0baa04ef6ae07ad080543b79f0ac8a87fd71.tar.gz
anaconda-dabe0baa04ef6ae07ad080543b79f0ac8a87fd71.tar.xz
anaconda-dabe0baa04ef6ae07ad080543b79f0ac8a87fd71.zip
Fix writing out --startxonboot and the initial setting of firstboot in case
no firstboot command line is found.
Diffstat (limited to 'xsetup.py')
-rw-r--r--xsetup.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/xsetup.py b/xsetup.py
index 0fec1a81b..0d184273f 100644
--- a/xsetup.py
+++ b/xsetup.py
@@ -51,12 +51,17 @@ class XSetup:
# We don't want anything else on s390.
if rhpl.getArch() == "s390" and args != []:
f.write("xconfig %s\n" % string.join(args, " "))
+ return
if ksconfig:
- s = ksconfig.xconfig.__str__().rstrip() + string.join(args, " ")
- f.write(s + "\n")
+ s = ksconfig.xconfig.__str__().rstrip()
+ f.write(s)
+
+ for arg in args:
+ if s.find(arg) == -1:
+ f.write(" %s" % arg)
- s = ksconfig.monitor.__str__().rstrip() + string.join(args, " ")
- f.write(s + "\n")
+ f.write("\n")
+ f.write(ksconfig.monitor.__str__())
elif args != []:
f.write("xconfig %s\n" % string.join(args, " "))