add a new keyword 'FileSystem', based on the updated static '.ks' file
authorLi Yi <liyi.novo@gmail.com>
Sat, 26 Mar 2011 14:08:19 +0000 (22:08 +0800)
committerLi Yi <liyi.novo@gmail.com>
Sat, 26 Mar 2011 14:08:19 +0000 (22:08 +0800)
furthormore, just one '\n' there enough

configurations.yaml
kickstart/kickstart.tmpl
tools/kickstarter

index 13bb538..1534bed 100644 (file)
@@ -9,6 +9,7 @@ Default:
     DefaultUser: meego
     DefaultUserPass: meego
     PartSize: 1900
+    FileSystem: ext3
     PostScripts:
         - rpm
     Groups:
index bbc421a..83bd1d3 100644 (file)
@@ -11,7 +11,7 @@ lang ${metadata.Language}
 keyboard ${metadata.Keyboard}
 timezone --utc ${metadata.Timezone}
 #if $metadata.Part == ""
-part / --size ${metadata.PartSize} --ondisk sda --fstype=ext3
+part / --size ${metadata.PartSize} --ondisk sda --fstype=${metadata.FileSystem}
 #else
 ${metadata.Part}
 #end if
index 9b3cdbe..2d511f2 100755 (executable)
@@ -62,14 +62,14 @@ class KSWriter():
         for scr in conf['PostScripts']:
             f = open('./custom/scripts/%s.post' %scr, 'r')
             postscript += f.read()
-            postscript += "\n\n"
+            postscript += "\n"
             f.close()
 
         nochrootscript = ""              
         for scr in conf['NoChrootScripts']:
             f = open('./custom/scripts/%s.nochroot' %scr, 'r')
             nochrootscript += f.read()
-            nochrootscript += "\n\n"
+            nochrootscript += "\n"
             f.close()
 
         ptab = ""