X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=build.sh;h=0067611c400483d6e937a4bf914e29397709bba7;hb=5d65a9a6a49bbc8d2256eb50eed1f0f0b4aa4300;hp=1adbfa29e9b861e313bafc9c01a173da3512dfda;hpb=26e59ecbb38b68a6b92b71505a8ed07fa9316a52;p=bootstrapfs.git diff --git a/build.sh b/build.sh index 1adbfa2..0067611 100755 --- a/build.sh +++ b/build.sh @@ -6,7 +6,7 @@ # Marc E. Fiuczynski # Copyright (C) 2005-2007 The Trustees of Princeton University # -# $Id: buildnode.sh,v 1.12.6.1 2007/08/30 20:09:20 mef Exp $ +# $Id$ # # @@ -60,7 +60,7 @@ pl_root_mkfedora ${vref} ${pldistro} $pkgsfile # optionally invoke a post processing script after packages from # $pkgsfile have been installed -postfile=$(pl_locateDistroFile ../build/ ${pldistro} bootstrapfs.post) +postfile=$(pl_locateDistroFile ../build/ ${pldistro} bootstrapfs.post || : ) [ -f $postfile ] && { echo "Running post install file $postfile" ; /bin/bash $postfile ${vref} || : ; } displayed="" @@ -70,7 +70,7 @@ pkgs_count=$(ls ../build/config.${pldistro}/bootstrapfs-*.pkgs 2> /dev/null | wc [ $pkgs_count -gt 0 ] && for pkgs in $(ls ../build/config.${pldistro}/bootstrapfs-*.pkgs); do NAME=$(basename $pkgs .pkgs | sed -e s,bootstrapfs-,,) - [ -z "$displayed" ] && echo "* Handling ${plistro} bootstrapfs extensions" + [ -z "$displayed" ] && echo "* Handling ${pldistro} bootstrapfs extensions" displayed=true extension_plain=bootstrapfs-${NAME}-${pl_DISTRO_ARCH}.tar @@ -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!" @@ -103,7 +107,7 @@ pkgs_count=$(ls ../build/config.${pldistro}/bootstrapfs-*.pkgs 2> /dev/null | wc # optionally invoke a post processing script after packages from # $pkgs have been installed - postfile=$(pl_locateDistroFile ../build/ ${pldistro} bootstrapfs-${NAME}.post) + postfile=$(pl_locateDistroFile ../build/ ${pldistro} bootstrapfs-${NAME}.post || : ) [ -f $postfile ] && { echo "Running post install file $postfile" ; /bin/bash $postfile ${vdir} || : ; } # Create a copy of the ${NAME} bootstrap filesystem w/o the base