summaryrefslogtreecommitdiffstats
path: root/libexec/container/start
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-06-05 08:27:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-06-05 08:27:42 +0000
commitdf8f3eccb410d23ea46774816ea47370fe7ef406 (patch)
tree2d4fbcec55e6ab05c42348ea2bbbe80eb7f16414 /libexec/container/start
parentAdding upstream version 20220604. (diff)
downloadopen-infrastructure-compute-tools-df8f3eccb410d23ea46774816ea47370fe7ef406.tar.xz
open-infrastructure-compute-tools-df8f3eccb410d23ea46774816ea47370fe7ef406.zip
Adding upstream version 20220605.upstream/20220605
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xlibexec/container/start3
1 files changed, 3 insertions, 0 deletions
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