projects
/
grml-scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "grml-chroot: mount /dev/pts as devpts inside chroot"
[grml-scripts.git]
/
usr_sbin
/
grml-chroot
diff --git
a/usr_sbin/grml-chroot
b/usr_sbin/grml-chroot
index
17f3d3c
..
e9c1ae3
100755
(executable)
--- a/
usr_sbin/grml-chroot
+++ b/
usr_sbin/grml-chroot
@@
-45,8
+45,8
@@
function mountit
local all_options_=""
local all_options_=""
- if [[ $options_ == "--
r
bind" ]]; then
- all_options_="--
r
bind $type_"
+ if [[ $options_ == "--bind" ]]; then
+ all_options_="--bind $type_"
else
all_options_="-t $type_ none"
fi
else
all_options_="-t $type_ none"
fi
@@
-56,7
+56,7
@@
function mountit
function umount_all
{
for i in $MOUNTED_; do
function umount_all
{
for i in $MOUNTED_; do
- umount
--recursive
"${DEST_}/$i"
+ umount "${DEST_}/$i"
done
}
done
}
@@
-87,7
+87,7
@@
fi
mountit "proc" "proc"
mountit "sysfs" "sys"
mountit "proc" "proc"
mountit "sysfs" "sys"
-mountit "/dev" "dev" "--
r
bind"
+mountit "/dev" "dev" "--bind"
WROTE_DEBIAN_CHROOT=""
if [ ! -f "$DEST_"/etc/debian_chroot ]; then
WROTE_DEBIAN_CHROOT=""
if [ ! -f "$DEST_"/etc/debian_chroot ]; then