From 143d517d2541a99b5071aa8b30195b0122ef3cec Mon Sep 17 00:00:00 2001 From: JF Ding Date: Wed, 18 Apr 2012 22:30:04 +0800 Subject: [PATCH] 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. --- demo/configurations.yaml | 2 ++ kickstart/kickstart.tmpl | 8 ++++++++ 2 files changed, 10 insertions(+) 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 -- 2.7.4