support new kickstart directive "prepackages"
authorJF Ding <jian-feng.ding@intel.com>
Wed, 18 Apr 2012 14:30:04 +0000 (22:30 +0800)
committerJF Ding <jian-feng.ding@intel.com>
Wed, 18 Apr 2012 14:38:56 +0000 (22:38 +0800)
Using corresponding yaml keyword "PrePackages" to specify
the packages which will be "pre-installed" by mic in the pre
stage of image creations.

demo/configurations.yaml
kickstart/kickstart.tmpl

index 724ebd6..71cee5d 100644 (file)
@@ -250,3 +250,5 @@ Configurations:
             - kernel-handset
             - kboot
             - serial-mfld
+        PrePackages:
+            - Answer2theUltimateQuestionOfEverything
index 2c0365f..6836acd 100644 (file)
@@ -91,6 +91,14 @@ ${e}
 #end for
 %end
 
+#if $metadata.has_key("PrePackages")
+%prepackages
+#for $e in $metadata.PrePackages
+${e}
+#end for
+%end
+#end if
+
 %post
 ${metadata.Post}
 %end