equal
deleted
inserted
replaced
9 TOPDIR=`pwd` |
9 TOPDIR=`pwd` |
10 BACKING=$TOPDIR/build/env/backing |
10 BACKING=$TOPDIR/build/env/backing |
11 MOUNT=$TOPDIR/build/env/mount |
11 MOUNT=$TOPDIR/build/env/mount |
12 mkdir -p $BACKING $MOUNT |
12 mkdir -p $BACKING $MOUNT |
13 |
13 |
|
14 touch $BACKING/please-trash-this-system |
14 cp -av action $BACKING |
15 cp -av action $BACKING |
|
16 mkdir -p $BACKING/etc |
|
17 cp -v policy-rc.d $BACKING/etc/policy-rc.d |
15 |
18 |
16 unionfs-fuse -o cow $BACKING=RW:$PRISTINE=RO $MOUNT |
19 unionfs-fuse -o cow -o allow_root,suid,dev $BACKING=RW:$PRISTINE=RO $MOUNT |
|
20 |
|
21 #mount --bind /dev "$MOUNT/dev" |
|
22 #mount --bind /dev/pts "$MOUNT/dev/pts" |
|
23 mount -t proc proc $MOUNT/proc |
17 |
24 |
18 chroot $MOUNT ./action/go |
25 chroot $MOUNT ./action/go |
19 cd $TOPDIR |
26 cd $TOPDIR |
20 |
27 |
|
28 umount $MOUNT/proc |
21 umount $MOUNT |
29 umount $MOUNT |
22 |
30 |
23 cat $BACKING/action/results |
31 cat $BACKING/action/results |
24 |
32 |
25 rm -rf build/env |
33 rm -rf build/env |