dev/chroot-test/run-test
changeset 283 01eca64f77ab
parent 282 1239880543cf
child 308 e1f71a2eafb6
equal deleted inserted replaced
282:1239880543cf 283:01eca64f77ab
    38 mkdir $BACKING $MOUNT
    38 mkdir $BACKING $MOUNT
    39 
    39 
    40 touch $BACKING/please-trash-this-system
    40 touch $BACKING/please-trash-this-system
    41 mkdir -p $BACKING/etc
    41 mkdir -p $BACKING/etc
    42 echo "pristine" > $BACKING/etc/debian_chroot
    42 echo "pristine" > $BACKING/etc/debian_chroot
    43 cp -v dev/chroot-test/policy-rc.d $BACKING/etc/policy-rc.d
    43 
       
    44 SCRIPTS=dev/chroot-test
       
    45 
       
    46 cp -v $SCRIPTS/policy-rc.d $BACKING/etc/policy-rc.d
    44 
    47 
    45 mkdir -p $BACKING/var/cache/apt/archives
    48 mkdir -p $BACKING/var/cache/apt/archives
    46 echo "Copying deb files out of cache"
    49 echo "Copying deb files out of cache"
    47 cp $BUILDDIR/aptcache/$DEBVERSION/* $BACKING/var/cache/apt/archives || true
    50 cp $BUILDDIR/aptcache/$DEBVERSION/* $BACKING/var/cache/apt/archives || true
    48 
    51 
    49 cp -av dev/chroot-test/action $BACKING
    52 cp -av $SCRIPTS/action $BACKING
    50 if [ -e debian/rules ] ; then
    53 . $SCRIPTS/copy-installables
    51     ./dev/debian-build/dbuild 
       
    52     cp build/debian/*.deb $BACKING/action
       
    53 else
       
    54     hg st -mac0n -X '*.hg' -X 'dev/**' \
       
    55         | cpio -p -0 -d $BACKING/action/mercurial-server
       
    56 fi
       
    57 
    54 
    58 unionfs-fuse -o cow -o allow_other,suid,dev $BACKING=RW:$PRISTINE=RO $MOUNT
    55 unionfs-fuse -o cow -o allow_other,suid,dev $BACKING=RW:$PRISTINE=RO $MOUNT
    59 
    56 
    60 #mount --bind /dev "$MOUNT/dev"
    57 #mount --bind /dev "$MOUNT/dev"
    61 #mount --bind /dev/pts "$MOUNT/dev/pts"
    58 #mount --bind /dev/pts "$MOUNT/dev/pts"