aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-11-21 21:00:51 +0100
committerWojtek Kosior <koszko@koszko.org>2022-11-21 21:00:51 +0100
commitf0c60194afef6f5a54cd61f0b9dc3df1e11f45a7 (patch)
tree21066f0b8e3842ba72e2bf59f096c889be182a00
parentb13a2e76f34b09881067c16a36f4ddbd1f61a7e1 (diff)
downloadkoszko-org-server-f0c60194afef6f5a54cd61f0b9dc3df1e11f45a7.tar.gz
koszko-org-server-f0c60194afef6f5a54cd61f0b9dc3df1e11f45a7.zip
prevent the \{,re\}start-container make targets from clobbering the global mount space
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1e7e37b..f2d057e 100644
--- a/Makefile
+++ b/Makefile
@@ -46,14 +46,14 @@ log:
mkdir -p log
start-container: guix-container.sh container-runner.touchfile | log
- ./run-with-fake-mounts.sh \
+ unshare --mount ./run-with-fake-mounts.sh \
./$< start -e ./container-runner -p ./pidfile -l ./log
stop-container: guix-container.sh
./$< stop -e ./container-runner -p ./pidfile
restart-container: guix-container.sh container-runner.touchfile | log
- ./run-with-fake-mounts.sh \
+ unshare --mount ./run-with-fake-mounts.sh \
./$< restart -e ./container-runner -p ./pidfile -l ./log
enter-container: pidfile