From: Mark Huang Date: Thu, 11 Jan 2007 21:49:52 +0000 (+0000) Subject: - specify more directories to be moved to /data X-Git-Tag: planetlab-4_0-rc1~58 X-Git-Url: http://git.onelab.eu/?p=myplc.git;a=commitdiff_plain;h=fa54f8b158000ff2112b997ff79e4ebff9469b0e - specify more directories to be moved to /data --- diff --git a/build_devel.sh b/build_devel.sh index 5b23db6..4c5b698 100755 --- a/build_devel.sh +++ b/build_devel.sh @@ -15,11 +15,32 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: build_devel.sh,v 1.4 2006/08/11 18:34:59 thierry Exp $ +# $Id: build_devel.sh,v 1.5 2006/08/18 14:35:52 thierry Exp $ # . build.functions +# These directories are allowed to grow to unspecified size, so they +# are stored as symlinks to the /data partition. mkfedora and yum +# expect some of them to be real directories, however. +datadirs=( +/etc/planetlab +/build +/cvs +/root +/tmp +/usr/tmp +/var/tmp +/var/log +) +for datadir in "${datadirs[@]}" ; do + # If we are being re-run, it may be a symlink + if [ -h devel/root/$datadir ] ; then + rm -f devel/root/$datadir + mkdir -p devel/root/$datadir + fi +done + echo "* myplc-devel: Installing base filesystem" mkdir -p devel/root make_chroot devel/root plc_devel_config.xml @@ -76,8 +97,7 @@ chmod 644 $roothome/.profile # Move "data" directories out of the installation echo "* myplc-devel: Moving data directories out of the installation" -move_datadirs devel/root devel/data \ - /etc/planetlab /build /cvs /root +move_datadirs devel/root devel/data "${datadirs[@]}" # Make image out of directory echo "* myplc-devel: Building loopback image"