]> git.proxmox.com Git - mirror_lxc.git/commit
yet another problem with new overlay fs
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 19 Jan 2015 05:06:55 +0000 (05:06 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 20 Jan 2015 23:44:55 +0000 (18:44 -0500)
commitdd2271e6bbee568064b35aa488716d478e6ea195
treed95433f9216760be531ac18170e0656a64aa1766
parent5fdd4b0c119f5bd14fed3d4a6424e5a4d00c360e
yet another problem with new overlay fs

It turns out that the new upstream overlay fs requires that the delta
and work dirs be under the same mount.  So create a $lxcpath/tmpfs
and create delta0 and work0 under that.  If the user asks for a
tmpfs that'll be mounted under $lxcpath/tmpfs and workdir and delta0
both created under that.

This isn't heavily tested.  But if fixes mounting of 'overlay' fs
for me.

It's "not backward compatible", since it moves delta0, but that
shouldn't matter since ephemeral containers are either destroyed
on exit, or re-started with lxc-start.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxc-start-ephemeral.in