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: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
# Basic requirements check
## We only support privileged containers for now
-if os.geteuid() != 0:
- parser.error(_("Unprivileged containers aren't supported at this time."))
+if os.geteuid() != 0 and args.union_type != "overlayfs":
+ parser.error(_("Unprivileged containers may only use "
+ "overlayfs at this time."))
## Check that -d and CMD aren't used at the same time
if args.command and args.daemon: