changeset 264 | cd7f901d3902 |
child 265 | 6629144cf111 |
-1:000000000000 | 264:cd7f901d3902 |
---|---|
1 #!/bin/sh |
|
2 |
|
3 # Must be root to run this |
|
4 |
|
5 set -e |
|
6 |
|
7 PRISTINE=/var/local/cache/pristine/sid |
|
8 |
|
9 TOPDIR=`pwd` |
|
10 BACKING=$TOPDIR/build/env/backing |
|
11 MOUNT=$TOPDIR/build/env/mount |
|
12 mkdir -p $BACKING $MOUNT |
|
13 |
|
14 cp -av action $BACKING |
|
15 |
|
16 unionfs-fuse -o cow $BACKING=RW:$PRISTINE=RO $MOUNT |
|
17 |
|
18 chroot $MOUNT ./action/go |
|
19 cd $TOPDIR |
|
20 |
|
21 umount $MOUNT |
|
22 |
|
23 cat $BACKING/action/results |
|
24 |
|
25 rm -rf build/env |
|
26 |