From 628d2ad4bf886ee792b6ea91f52aed708dae8702 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 31 Jul 2016 20:39:18 +0200 Subject: Adding support for user namespace. Signed-off-by: Daniel Baumann --- lib/container/start | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/container/start') 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 -- cgit v1.2.3