diff options
author | Chris Lumens <clumens@redhat.com> | 2007-01-26 22:34:04 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2007-01-26 22:34:04 +0000 |
commit | dabe0baa04ef6ae07ad080543b79f0ac8a87fd71 (patch) | |
tree | a751cf9a2ce795e8f94cb74fa831007373607627 /xsetup.py | |
parent | bf6e82648e88c1b99259e9184ffb795d7cfe871e (diff) | |
download | anaconda-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.py | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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, " ")) |