blob: 6f63dfe88f64b2f816413c0ee5957ae06b0b68f8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
setupBindmounts() {
mount -o bind /proc $BROOT_BUILDROOT_PATH/proc
mount -t devtmpfs dev $BROOT_BUILDROOT_PATH/dev
chroot $BROOT_BUILDROOT_PATH mount -t devpts devpts /dev/pts
[ "x$(cat /proc/mounts | grep -q "/tmp/deb")" == "x" ] && mount -o bind /tmp/deb $BROOT_BUILDROOT_PATH/var/cache/apt/archives
}
destroyBindmounts() {
umount $BROOT_BUILDROOT_PATH/proc
umount $BROOT_BUILDROOT_PATH/dev/pts
umount $BROOT_BUILDROOT_PATH/dev
umount /tmp/deb
}
|