From 549e741c38b7d8e5f665b287511a513928d10552 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 Jun 2022 08:24:51 +0200 Subject: Tracking container state in run files in /var/lib/compute-tools. Signed-off-by: Daniel Baumann --- libexec/container/start | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libexec/container/start') diff --git a/libexec/container/start b/libexec/container/start index 7b95866..1f22325 100755 --- a/libexec/container/start +++ b/libexec/container/start @@ -556,6 +556,9 @@ case "${START}" in ;; esac + mkdir -p "/var/lib/${SOFTWARE}/state" + echo "start" > "/var/lib/${SOFTWARE}/state/${NAME}.run" + ${SETARCH} systemd-nspawn --keep-unit ${BIND} ${BIND_RO} ${BOOT} ${CAPABILITY} ${DIRECTORY} ${DROP_CAPABILITY} ${MACHINE} ${NETWORK_VETH_EXTRA} ${LINK_JOURNAL} ${REGISTER} case "${VERBOSE}" in -- cgit v1.2.3