Modified to execute config.planetlab/vserver.post scripts to perform final
authorStephen Soltesz <soltesz@cs.princeton.edu>
Wed, 20 Feb 2008 20:29:00 +0000 (20:29 +0000)
committerStephen Soltesz <soltesz@cs.princeton.edu>
Wed, 20 Feb 2008 20:29:00 +0000 (20:29 +0000)
vserver-reference image cleanups.

build.sh

index f1a0657..f92857e 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -92,6 +92,9 @@ systemvserver_count=$(ls ../build/config.${pldistro}/vserver-*.pkgs 2> /dev/null
     [ -n "$systempackages" ] && yum -c ${vdir}/etc/yum.conf --installroot=${vdir} -y install $systempackages
     [ -n "$systemgroups" ] && yum -c ${vdir}/etc/yum.conf --installroot=${vdir} -y groupinstall $systemgroups
 
+    postfile=$(pl_locateDistroFile ../build/ ${pldistro} vserver.post)
+    [ "$postfile" != "not-found-by-pl_locateDistroFile" ] && /bin/bash $postfile ${vdir} || :
+
     # Create a copy of the system vserver w/o the vserver reference files and make it smaller. 
     # This is a three step process: