From 05ccbc6dcb37201a98ba8ae9eb98589671fdec08 Mon Sep 17 00:00:00 2001 From: Iris Lightshard Date: Sun, 19 Apr 2026 17:13:47 -0600 Subject: [PATCH] psuedofs changes for foreign distributions --- mklive.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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