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 }