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 }