]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-local: add --mapped-{g,u}id flags 2164/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 27 Feb 2018 13:12:50 +0000 (14:12 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 28 Feb 2018 09:05:35 +0000 (10:05 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
templates/lxc-local.in

index 20c0c35c3df6b55d52e00f639f220001c2b1cee5..552a4946de4903fe21690f79efae1086bba07fc6 100644 (file)
@@ -69,7 +69,8 @@ LXC internal arguments (do not pass manually!):
 [ --name <name> ]: The container name
 [ --path <path> ]: The path to the container
 [ --rootfs <rootfs> ]: The path to the container's rootfs
-
+[ --mapped-uid <map> ]: A uid map (user namespaces)
+[ --mapped-gid <map> ]: A gid map (user namespaces)
 EOF
   return 0
 }
@@ -88,6 +89,8 @@ while :; do
     --rootfs)      LXC_ROOTFS="$2"; shift 2;;
     -m|--metadata) LXC_CONFIG="$2"; shift 2;;
     -f|--fstree)   LXC_FSTREE="$2"; shift 2;;
+    --mapped-uid)  LXC_MAPPED_UID="$2"; shift 2;;
+    --mapped-gid)  LXC_MAPPED_GID="$2"; shift 2;;
     *)             break;;
   esac
 done