- echo ${vrefname} > ${vdir}.cloned
-
- # Install the system vserver specific packages
- # xxx - thierry -adding disablerepo for closing the build loop - should be solved some other way
- if [ "$pl_DISTRO_RELEASE" -le 6 ] ; then
- xxx=--disablerepo=extras
- fi
- [ -n "$systempackages" ] && yum -c ${vdir}/etc/yum.conf --installroot=${vdir} $xxx -y install $systempackages
- [ -n "$systemgroups" ] && yum -c ${vdir}/etc/yum.conf --installroot=${vdir} -y groupinstall $systemgroups
-
- # Create a copy of the system vserver w/o the vserver reference files and make it smaller.
+ echo ${slicefamily} > ${vdir}.cloned
+
+ # Install the system sliceimage specific packages
+ for yum_package in $systempackages; do
+ echo " * yum installing $yum_package"
+ yum -c ${vdir}/etc/mkfedora-yum.conf --installroot=${vdir} -y install $yum_package
+ done
+ for group_plus in $systemgroups; do
+ group=$(echo $group_plus | sed -e "s,+++, ,g")
+ echo " * yum groupinstalling $group"
+ yum -c ${vdir}/etc/mkfedora-yum.conf --installroot=${vdir} -y groupinstall "$group"
+ done
+
+ # this requires pip to be available in sliceimage at that point
+ # fedora and debian -> python-pip
+ # on fedora the command is called pip-python (sigh.)
+ for pip in $systempips; do
+ echo " * pip installing $pip"
+ chroot ${vdir} pip -v install $pip || chroot ${vdir} pip-python -v $pip || echo " * FAILURE with pip $pip"
+ done
+
+ # same for gems; comes with ruby in fedora but ruby-devel is most likely a good thing
+ # we add --no-rdoc --no-ri to keep it low
+ for gem in $systemgems; do
+ echo " * gem installing $gem"
+ chroot ${vdir} gem install --no-rdoc --no-ri $gem || echo " * FAILURE with gem $gem"
+ done
+
+ # search e.g. sliceimage-planetflow.post in config.<pldistro> or in config.planetlab otherwise
+ postfile=$(pl_locateDistroFile ../build/ ${pldistro} sliceimage-${NAME}.post || : )
+
+ [ -f $postfile ] && /bin/bash $postfile ${vdir} || :
+
+ # Create a copy of the system sliceimage w/o the sliceimage reference files and make it smaller.