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
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
function umount_all
{
for i in $MOUNTED_; do
- umount --recursive "${DEST_}/$i"
+ umount "${DEST_}/$i"
done
}
mountit "proc" "proc"
mountit "sysfs" "sys"
-mountit "/dev" "dev" "--rbind"
+mountit "/dev" "dev" "--bind"
WROTE_DEBIAN_CHROOT=""
if [ ! -f "$DEST_"/etc/debian_chroot ]; then