summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-11-21 16:58:42 +0000
committerErik Troan <ewt@redhat.com>2000-11-21 16:58:42 +0000
commit028d6002f4d8038a39df1408e72d890d3398b82a (patch)
tree8c64610ce22a6d0c3bdca671ff7df977c0131536 /kickstart.py
parent94258075c42ff9ad1965441ccf2bd76048180103 (diff)
downloadanaconda-028d6002f4d8038a39df1408e72d890d3398b82a.tar.gz
anaconda-028d6002f4d8038a39df1408e72d890d3398b82a.tar.xz
anaconda-028d6002f4d8038a39df1408e72d890d3398b82a.zip
leave white space and comments in kickstart scripts
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/kickstart.py b/kickstart.py
index ade3e6abe..e948bdeb4 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -383,7 +383,10 @@ class KickstartBase(BaseInstallClass):
newSection = None
for n in open(file).readlines():
args = isys.parseArgv(n)
- if not args or args[0][0] == '#': continue
+
+ # don't eliminate white space or comments from scripts
+ if where != "pre" and where != "post":
+ if not args or args[0][0] == '#': continue
if args[0] == "%post" or args[0] == "%pre":
if where =="pre" or where == "post":