+# 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
+