Added the 'packages' disco ball that installs and removes packages for you from parameters. Minor fixups to disco-fs-diff. Fixed a bug in disco-ball where files would not get deleted, and .unionfs was rsynced back into /.

This commit is contained in:
2012-08-23 19:39:07 -04:00
parent c000ebba48
commit 68c32cadf3
5 changed files with 32 additions and 3 deletions

View File

@@ -129,12 +129,14 @@ function spin() {
/usr/bin/time -f "$TIME" -o /var/disco/reports/${module}/diff disco-fs-diff
if [ "$NOOP" == "" ]; then
# Now for the real rsync back home
rsync -aWH /var/disco/testfs/real/scratchfs/. /
cd /var/disco/testfs/real/scratchfs/.unionfs
for file in $(find . -iname "_HIDDEN~" -type f);
for file in $(find . -iname "*_HIDDEN~" | sed -e s/"^\."/""/g -e s/"_HIDDEN~$"/""/g);
do
rm -rf /${file}
done
cd ..
rm -rf ./.unionfs
rsync -aWH /var/disco/testfs/real/scratchfs/. /
fi
rm -rf /var/disco/testfs/noop/scratchfs/*
rm -rf /var/disco/testfs/real/scratchfs/*