diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2018-05-27 08:55:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2018-05-27 08:55:42 +0000 |
commit | e12874a60f3c9446dd627575e435361abdb871a8 (patch) | |
tree | 2830f2976fb7e0dc8a1d227dfbc473beacf39985 /lib/container | |
parent | Calling shell in container enter command directly, replacing container-nsente... (diff) | |
download | compute-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-x | lib/container/enter | 2 |
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}" |