From dc087a205b2fad63c9868d34e3fad19b0c11ce2a Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 16 Nov 2024 04:28:32 +0100 Subject: [PATCH] ur --- shell/mount.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/shell/mount.sh b/shell/mount.sh index b27b1a2..0211131 100644 --- a/shell/mount.sh +++ b/shell/mount.sh @@ -94,9 +94,12 @@ chroot \ " ur() { - local f - for f in "sys" "proc" "dev/pts" "dev"; do - umount --lazy "overlay/mount/${f}" + local directory + for directory in "sys" "proc" "dev/pts" "dev"; do + if ! umount --lazy "overlay/mount/${directory}"; then + log_error "Unable to bind unmount directory: ${directory}" + return 1 + fi done }