summaryrefslogtreecommitdiffstats
path: root/inc/helper.inc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'inc/helper.inc.sh')
-rw-r--r--inc/helper.inc.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/inc/helper.inc.sh b/inc/helper.inc.sh
index eed974d..00c1915 100644
--- a/inc/helper.inc.sh
+++ b/inc/helper.inc.sh
@@ -1,11 +1,13 @@
setupBindmounts() {
- mount -o bind /proc $buildrootpath/proc
- mount -o bind /dev $buildrootpath/dev
+ 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
}
destroyBindmounts() {
- umount $buildrootpath/proc
- umount $buildrootpath/dev
+ umount $BROOT_BUILDROOT_PATH/proc
+ umount $BROOT_BUILDROOT_PATH/dev/pts
+ umount $BROOT_BUILDROOT_PATH/dev
umount /tmp/deb
}