summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlib/container/start6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/container/start b/lib/container/start
index d5bbbf4..7e11121 100755
--- a/lib/container/start
+++ b/lib/container/start
@@ -107,6 +107,12 @@ case "${START}" in
;;
esac
+if [ -e "${MACHINES}/.#${NAME}.lck" ]
+then
+ echo "'${NAME}': container is locked" >&2
+ exit 1
+fi
+
HOST_ARCHITECTURE="$(dpkg --print-architecture)"
MACHINE_ARCHITECTURE="$(chroot ${MACHINES}/${NAME} dpkg --print-architecture)"