From: Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Date: Fri, 9 Oct 2009 13:40:34 +0000 (+0000)
Subject: can yum install groups (use +++ for space) in bootstrapfs and vserver-reference
X-Git-Tag: BootstrapFS-1.0-9~2
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=18991130cb89580997b7d86d95a1314c9b56ed3d;p=bootstrapfs.git

can yum install groups (use +++ for space) in bootstrapfs and vserver-reference
---

diff --git a/build.sh b/build.sh
index e4f4a1e..646a2ec 100755
--- a/build.sh
+++ b/build.sh
@@ -94,7 +94,11 @@ pkgs_count=$(ls ../build/config.${pldistro}/bootstrapfs-*.pkgs 2> /dev/null | wc
 
     # Install the system vserver specific packages
     [ -n "$packages" ] && yum -c ${vdir}/etc/mkfedora-yum.conf --installroot=${vdir} -y install $packages
-    [ -n "$groups" ] && yum -c ${vdir}/etc/mkfedora-yum.conf --installroot=${vdir} -y groupinstall $groups
+    for group_plus in $groups; do
+	group=$(echo $group_plus | sed -e "s,+++, ,g")
+        yum -c ${vdir}/etc/mkfedora-yum.conf --installroot=${vdir} -y groupinstall "$group"
+    done
+
 
     if [ -f "${vdir}/proc/cpuinfo" ] ; then
         echo "WARNING: some RPM appears to have mounted /proc in ${NAME}. Unmounting it!"