mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-05 18:27:06 +00:00
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:
parent
c8154066e8
commit
a974fa76e4
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user