exec >>/var/log/vserver-sliceimage
exec 2>&1
-echo "--- STARTING $(date) ---" >&3 2>&4
+echo "vserver-sliceimage: --- STARTING $(date) ---"
# Parse PLC configuration
if [ -r /etc/planetlab/plc_config ] ; then
# Build reference images for system slices
# xxx if several instances of systemslices get installed, only one gets instanciated
-for systemslice in "$__DEFAULT_VSERVERDIR/.vstub/"*/*.cloned ; do
+for clonedstamp in "$__DEFAULT_VSERVERDIR/.vstub/"*/*.cloned ; do
# e.g. NAME=planetflow
- NAME=$(basename $systemslice .cloned)
- DIR=$(dirname $systemslice)
+ NAME=$(basename $clonedstamp .cloned)
+ DIR=$(dirname $clonedstamp)
# e.g. SLICEFAMILY=planetlab-f8-i386
- SLICEFAMILY=$(cat $systemslice)
+ SLICEFAMILY=$(cat $clonedstamp)
# deduce the actual name used in .vref by replacing the first part of slice-family
# (pldistro) with the slice name
# e.g. VREFNAME=planetflow-f8-i386
[ -n "$FORCE" ] && message=Force-building
# Copy base reference image
- echo -n $"$message slice image for $NAME in $VREFNAME: " >&3 2>&4
+ echo -n $"$message slice image for $NAME in $VREFNAME: "
# Build in temporary directory
mkdir -p "$__DEFAULT_VSERVERDIR/.vtmp"
done
success >&3 2>&4
-echo "--- DONE $(date) ---" >&3 2>&4
+echo "vserver-sliceimage: --- DONE $(date) ---"
echo >&3 2>&4
exit 0