]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc-cirros: support creating+running unprivileged
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 31 Oct 2014 02:42:31 +0000 (02:42 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 24 Nov 2014 21:32:00 +0000 (16:32 -0500)
commit6b4105628005f9fdf29aa15a80f85da48960c2d4
treeab8ae9252f4858450a6edb32da96f0ecc4d4ef80
parenta589434ecf980842b9ab1b4d81dc54410f389bef
lxc-cirros: support creating+running unprivileged

Support creation and use of lxc-cirros by unprivileged users.

If we detect we are an unprivileged user, then insist that we
be in a userns with a id mapping.

If we are in a userns, then don't extract /dev when extracting
the rootfs.

If we are not root, then save the tarball to ~/.cache/lxc/cirros
instead of /var/cache/lxc/cirros.

If we are not roo, then include entries to auto-mount proc and sys,
as well as bind-mount devices.

Cc: Scott Moser <smoser@ubuntu.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-cirros.in