diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-07-31 18:39:18 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-08-04 13:35:55 +0000 |
commit | 628d2ad4bf886ee792b6ea91f52aed708dae8702 (patch) | |
tree | 3c5916eabca0a64230549335aed39bb373da2c0b /lib/container/start | |
parent | Sorting container configuration file. (diff) | |
download | compute-tools-628d2ad4bf886ee792b6ea91f52aed708dae8702.tar.xz compute-tools-628d2ad4bf886ee792b6ea91f52aed708dae8702.zip |
Adding support for user namespace.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-x | lib/container/start | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/container/start b/lib/container/start index 41e8f72..5191ae2 100755 --- a/lib/container/start +++ b/lib/container/start @@ -312,6 +312,18 @@ EOF ;; esac + PRIVATE_USERS="$(awk -F= '/^private-users=/ { print $2 }' ${CONFIG}/${NAME}.conf || echo no)" + + case "${PRIVATE_USERS}" in + yes) + PRIVATE_USERS="--private-users=yes" + ;; + + *) + PRIVATE_USERS="--private-users=no" + ;; + esac + REGISTER="$(awk -F= '/^register=/ { print $2 }' ${CONFIG}/${NAME}.conf || echo yes)" case "${REGISTER}" in |