summaryrefslogtreecommitdiffstats
path: root/templates/enter_dev_chroot.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-10-27 21:03:07 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-10-27 21:03:07 (GMT)
commit0ec4b273af72b4723df8b4a4c9e76e52b14a7328 (patch)
tree77f297b81edfca58e108330b4b209299eed788bd /templates/enter_dev_chroot.sh
parent4473d450326bdd798c790d2f70dfd890c4dc7d42 (diff)
downloadlinhes_dev-0ec4b273af72b4723df8b4a4c9e76e52b14a7328.zip
fixups for creating the chroot
Signed-off-by: James Meyer <james.meyer@operamail.com>
Diffstat (limited to 'templates/enter_dev_chroot.sh')
-rwxr-xr-xtemplates/enter_dev_chroot.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/templates/enter_dev_chroot.sh b/templates/enter_dev_chroot.sh
index 9eda528..b3c27d6 100755
--- a/templates/enter_dev_chroot.sh
+++ b/templates/enter_dev_chroot.sh
@@ -61,7 +61,7 @@ cleanUp() { # no arguments
# unmount all:
local mnts1="data/$repoBaseDir data/$packageDir build_tools"
- local mnts2="dev/pts sys proc"
+ local mnts2=" dev dev/pts sys proc"
for i in $mnts1 $mnts2 ; do
grep -q $BROOT/$i /proc/mounts && {
echo -e "unMounting ${C_B}$i${C_N}"
@@ -123,12 +123,13 @@ trap cleanUp 1 2 15 EXIT
ckMount -t proc proc
ckMount -t sysfs sys
-ckMount -t devpts dev/pts
+mount --bind /dev $BROOT/dev
+#ckMount -t devpts dev/pts
-[ -e dev/random ] || mknod dev/random c 1 8
-[ -e dev/urandom ] || mknod dev/urandom c 1 9
-[ -e dev/tty ] || mknod dev/tty c 5 0
-[ -e dev/ptmx ] || mknod dev/ptmx c 5 2
+#[ -e dev/random ] || mknod dev/random c 1 8
+#[ -e dev/urandom ] || mknod dev/urandom c 1 9
+#[ -e dev/tty ] || mknod dev/tty c 5 0
+#[ -e dev/ptmx ] || mknod dev/ptmx c 5 2
ckMount --bind $toolsDir/build_tools build_tools
ckMount --bind $packageDir data/$packageDir