summaryrefslogtreecommitdiffstats
path: root/lib/container/enter
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2018-05-27 08:55:42 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2018-05-27 08:55:42 +0000
commite12874a60f3c9446dd627575e435361abdb871a8 (patch)
tree2830f2976fb7e0dc8a1d227dfbc473beacf39985 /lib/container/enter
parentCalling shell in container enter command directly, replacing container-nsente... (diff)
downloadcompute-tools-e12874a60f3c9446dd627575e435361abdb871a8.tar.xz
compute-tools-e12874a60f3c9446dd627575e435361abdb871a8.zip
Correcting and simplifying nsenter call in container enter command.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xlib/container/enter2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/container/enter b/lib/container/enter
index f7551fe..5d2d25c 100755
--- a/lib/container/enter
+++ b/lib/container/enter
@@ -104,7 +104,7 @@ do
done
# Run
-nsenter --target ${LEADER} --mount --uts --ipc --net --pid --root --wd=/root /usr/bin/script -c "/bin/bash -l" -q /dev/null
+nsenter --all --target "${LEADER}" --wd="${MACHINES}/${NAME}/root" /usr/bin/script -c "/bin/bash -l" -q /dev/null
# Post hooks
for FILE in "${HOOKS}/post-${COMMAND}".* "${HOOKS}/${NAME}.post-${COMMAND}"