Commit a974fa76 by Stéphane Graber

lxc-start-ephemeral: Allow unprivileged run

This allows running lxc-start-ephemeral using overlayfs. aufs remains blocked as it hasn't been looked at and patched to work in the kernel at this point (not sure if it ever wil). Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent c8154066
...@@ -105,8 +105,9 @@ args = parser.parse_args() ...@@ -105,8 +105,9 @@ args = parser.parse_args()
# Basic requirements check # Basic requirements check
## We only support privileged containers for now ## We only support privileged containers for now
if os.geteuid() != 0: if os.geteuid() != 0 and args.union_type != "overlayfs":
parser.error(_("Unprivileged containers aren't supported at this time.")) parser.error(_("Unprivileged containers may only use "
"overlayfs at this time."))
## Check that -d and CMD aren't used at the same time ## Check that -d and CMD aren't used at the same time
if args.command and args.daemon: if args.command and args.daemon:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment