summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJF Ding <jian-feng.ding@intel.com>2012-04-18 22:30:04 +0800
committerJF Ding <jian-feng.ding@intel.com>2012-04-18 22:38:56 +0800
commit143d517d2541a99b5071aa8b30195b0122ef3cec (patch)
tree2f4720bb0918fbe8d7b33b5067933c68d2681d4f
parent29148ad98e2e85c8b19ffa422314733186469d22 (diff)
downloadkickstarter-143d517d2541a99b5071aa8b30195b0122ef3cec.tar.gz
kickstarter-143d517d2541a99b5071aa8b30195b0122ef3cec.tar.bz2
kickstarter-143d517d2541a99b5071aa8b30195b0122ef3cec.zip
support new kickstart directive "prepackages"
Using corresponding yaml keyword "PrePackages" to specify the packages which will be "pre-installed" by mic in the pre stage of image creations.
-rw-r--r--demo/configurations.yaml2
-rw-r--r--kickstart/kickstart.tmpl8
2 files changed, 10 insertions, 0 deletions
diff --git a/demo/configurations.yaml b/demo/configurations.yaml
index 724ebd6..71cee5d 100644
--- a/demo/configurations.yaml
+++ b/demo/configurations.yaml
@@ -250,3 +250,5 @@ Configurations:
- kernel-handset
- kboot
- serial-mfld
+ PrePackages:
+ - Answer2theUltimateQuestionOfEverything
diff --git a/kickstart/kickstart.tmpl b/kickstart/kickstart.tmpl
index 2c0365f..6836acd 100644
--- a/kickstart/kickstart.tmpl
+++ b/kickstart/kickstart.tmpl
@@ -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