# HG changeset patch # User Paul Crowley # Date 1259658910 0 # Node ID cd7f901d39029c452653a2ffffee547d6361e187 Do something with unionfs - it works diff -r 000000000000 -r cd7f901d3902 .hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Tue Dec 01 09:15:10 2009 +0000 @@ -0,0 +1,7 @@ +^build/ +syntax: glob + +*~ +*.pyc +*.orig +*.rej diff -r 000000000000 -r cd7f901d3902 action/go --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/action/go Tue Dec 01 09:15:10 2009 +0000 @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +cd action + +echo "It worked" > results + +ls -l /dev >> results + + diff -r 000000000000 -r cd7f901d3902 run-test --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run-test Tue Dec 01 09:15:10 2009 +0000 @@ -0,0 +1,26 @@ +#!/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 +