diff --git a/mklive.sh b/mklive.sh index e4098b39f..26283d143 100755 --- a/mklive.sh +++ b/mklive.sh @@ -51,12 +51,13 @@ mount_pseudofs() { for f in sys dev proc; do mkdir -p "$ROOTFS"/$f mount --rbind /$f "$ROOTFS"/$f + mount --make-rslave "$ROOTFS"/$f done } umount_pseudofs() { for f in sys dev proc; do - if [ -d "$ROOTFS/$f" ] && ! umount -R -f "$ROOTFS/$f"; then + if [ -d "$ROOTFS/$f" ] && ! umount -R -l -f "$ROOTFS/$f"; then info_msg "ERROR: failed to unmount $ROOTFS/$f/" return 1 fi