From 94746ca4977d3f851364ed1009c573b01f71bd10 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 16 Nov 2024 04:27:07 +0100 Subject: [PATCH] mr --- shell/mount.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/shell/mount.sh b/shell/mount.sh index ed78546..b27b1a2 100644 --- a/shell/mount.sh +++ b/shell/mount.sh @@ -73,9 +73,12 @@ uo() { } mr() { - local f - for f in "dev" "dev/pts" "proc" "sys"; do - mount --bind "/${f}" "overlay/mount/${f}" + local directory + for directory in "dev" "dev/pts" "proc" "sys"; do + if ! mount --bind "/${directory}" "overlay/mount/${directory}"; then + log_error "Unable to bind mount directory: ${directory}" + return 1 + fi done }