summaryrefslogtreecommitdiffstats
path: root/lib/container/start
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2019-10-22 08:32:00 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2019-11-04 06:01:41 +0000
commitdff790029ca17811a04fdda3069fc5c0a1a729ec (patch)
tree24aa3af1076a283bfefe3b22f583f08754501313 /lib/container/start
parentTightening Address lookup in container list command for systemd-networkd to n... (diff)
downloadcompute-tools-dff790029ca17811a04fdda3069fc5c0a1a729ec.tar.xz
compute-tools-dff790029ca17811a04fdda3069fc5c0a1a729ec.zip
Adding default hook to unlink console prior start when bindmounting /dev (e.g. in GPU computing cases).
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xlib/container/start3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/container/start b/lib/container/start
index 47c2907..13fc6ef 100755
--- a/lib/container/start
+++ b/lib/container/start
@@ -101,6 +101,9 @@ then
Usage
fi
+# hooks
+export NAME
+
case "${NAME}" in
ALL)
NAMES="$(${PROGRAM} list --format shell --stopped)"