summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorSebastian Schmelzer2011-11-11 15:24:25 +0100
committerSebastian Schmelzer2011-11-11 15:24:25 +0100
commit1c27326486cebbcca64c4eeba7cb035639ed48f6 (patch)
tree90133382ca5be91ba68bf134f25c9417e921e474 /inc
parentupdate broot scripts (diff)
downloadbroot-master.tar.gz
broot-master.tar.xz
broot-master.zip
minor fixesHEADmaster
Diffstat (limited to 'inc')
-rw-r--r--inc/chroot-functions.inc.sh2
-rw-r--r--inc/helper.inc.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/inc/chroot-functions.inc.sh b/inc/chroot-functions.inc.sh
index 7eb566c..383d31d 100644
--- a/inc/chroot-functions.inc.sh
+++ b/inc/chroot-functions.inc.sh
@@ -13,5 +13,5 @@ chroot-aptinstall () {
if [ $(mount |grep -c $BROOT_BUILDROOT_PATH/dev) -eq 0 ]; then
setupBindmounts
fi
- chroot $BROOT_BUILDROOT_PATH linux32 aptitude install -y $@
+ chroot $BROOT_BUILDROOT_PATH linux32 apt-get install -y $@
}
diff --git a/inc/helper.inc.sh b/inc/helper.inc.sh
index 5d600ea..10f15ee 100644
--- a/inc/helper.inc.sh
+++ b/inc/helper.inc.sh
@@ -1,7 +1,7 @@
setupBindmounts() {
mount -t proc proc $BROOT_BUILDROOT_PATH/proc
- mount -t tmpfs dev $BROOT_BUILDROOT_PATH/dev
+ mount -o bind /dev $BROOT_BUILDROOT_PATH/dev
[ ! -f $BROOT_BUILDROOT_PATH/dev/pts ] && mkdir -p $BROOT_BUILDROOT_PATH/dev/pts
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