From 23a18e97518e4fdee22505dcbdf9e87546319e43 Mon Sep 17 00:00:00 2001 From: Marc Fiuczynski Date: Wed, 7 Nov 2007 21:01:27 +0000 Subject: [PATCH] * use pl_getPackages and pl_getGroups functions from build.common * "clean all" the yum cache of the base vserver reference image --- build.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/build.sh b/build.sh index 8165fa5..521e45f 100755 --- a/build.sh +++ b/build.sh @@ -42,8 +42,8 @@ export PL_BOOTCD=1 # "Parse" out the packages and groups into the options passed to mkfedora # -k = exclude kernel* packages options="-k" -packages=$(grep "^package:.*" base.lst | awk '{print $2}') -groups=$(grep "^group:.*" base.lst | awk '{print $2}') +packages=$(pk_getPackages base.lst) +groups=$(pk_getGroups base.lst) for package in ${packages} ; do options="$options -p $package"; done for group in ${groups} ; do options="$options -g $group"; done @@ -53,11 +53,6 @@ install -d -m 755 ${vref} pl_makedevs ${vref} pl_setup_chroot ${vref} -k ${options} -# Build the base Bootstrap filesystem -echo "--------STARTING tar'ing PlanetLab-Bootstrap.tar.bz2: $(date)" -tar -cpjf PlanetLab-Bootstrap.tar.bz2 -C ${vref} . -echo "--------FINISHED tar'ing PlanetLab-Bootstrap.tar.bz2: $(date)" - for bootstrapfs in bootstrap-filesystems/*.lst ; do NAME=$(basename $bootstrapfs .lst) @@ -112,4 +107,11 @@ for bootstrapfs in bootstrap-filesystems/*.lst ; do echo "--------DONE BUILDING PlanetLab-Bootstrap-${NAME}: $(date)" done +# Build the base Bootstrap filesystem +echo "--------STARTING tar'ing PlanetLab-Bootstrap.tar.bz2: $(date)" +# clean out yum cache to reduce space requirements +yum -c ${vref}/etc/yum.conf --installroot=${vdir} -y clean all +tar -cpjf PlanetLab-Bootstrap.tar.bz2 -C ${vref} . +echo "--------FINISHED tar'ing PlanetLab-Bootstrap.tar.bz2: $(date)" + exit 0 -- 2.43.0