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: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Stéphane Graber 2014-02-12 11:58:15 -05:00
parent c8154066e8
commit a974fa76e4

View File

@ -105,8 +105,9 @@ args = parser.parse_args()
# 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: