Revert "grml-chroot: mount /dev/pts as devpts inside chroot"
authorMichael Prokop <mika@grml.org>
Fri, 16 Jun 2017 07:56:36 +0000 (09:56 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 16 Jun 2017 07:56:36 +0000 (09:56 +0200)
This reverts commit f29c425ad79cbe31fca61397cbd3d97347f32cd7.

This is causing troubles under certain conditions which leave the
system in an unfixable state, so we need a different approach.

See grml/grml#53

usr_sbin/grml-chroot

index 17f3d3c..e9c1ae3 100755 (executable)
@@ -45,8 +45,8 @@ function mountit
 
     local all_options_=""
 
-    if [[ $options_ == "--rbind" ]]; then
-        all_options_="--rbind $type_"
+    if [[ $options_ == "--bind" ]]; then
+        all_options_="--bind $type_"
     else
         all_options_="-t $type_ none"
     fi
@@ -56,7 +56,7 @@ function mountit
 function umount_all
 {
     for i in $MOUNTED_; do
-        umount --recursive "${DEST_}/$i"
+        umount "${DEST_}/$i"
     done
 }
 
@@ -87,7 +87,7 @@ fi
 
 mountit "proc"  "proc"
 mountit "sysfs" "sys"
-mountit "/dev"   "dev"   "--rbind"
+mountit "/dev"   "dev"   "--bind"
 
 WROTE_DEBIAN_CHROOT=""
 if [ ! -f "$DEST_"/etc/debian_chroot ]; then