run-test
author Paul Crowley <paul@lshift.net>
Tue, 01 Dec 2009 09:15:10 +0000
changeset 264 cd7f901d3902
child 265 6629144cf111
permissions -rwxr-xr-x
Do something with unionfs - it works

#!/bin/sh

# Must be root to run this

set -e

PRISTINE=/var/local/cache/pristine/sid

TOPDIR=`pwd`
BACKING=$TOPDIR/build/env/backing
MOUNT=$TOPDIR/build/env/mount
mkdir -p $BACKING $MOUNT

cp -av action $BACKING

unionfs-fuse -o cow $BACKING=RW:$PRISTINE=RO $MOUNT

chroot $MOUNT ./action/go
cd $TOPDIR

umount $MOUNT

cat $BACKING/action/results

rm -rf build/env