Fixes:
| E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory)
Thanks: AndrĂ¡s Korn for proposing the --rbind/--recursive approach
local all_options_=""
- if [[ $options_ == "--bind" ]]; then
- all_options_="--bind $type_"
+ if [[ $options_ == "--rbind" ]]; then
+ all_options_="--rbind $type_"
else
all_options_="-t $type_ none"
fi
function umount_all
{
for i in $MOUNTED_; do
- umount "${DEST_}/$i"
+ umount --recursive "${DEST_}/$i"
done
}
mountit "proc" "proc"
mountit "sysfs" "sys"
-mountit "/dev" "dev" "--bind"
+mountit "/dev" "dev" "--rbind"
WROTE_DEBIAN_CHROOT=""
if [ ! -f "$DEST_"/etc/debian_chroot ]; then