<div dir="ltr">Ok, thanks for your reply.<div><br></div><div>Any suggestion to achieve something similar? I'm trying with btrfs subvolumes but I don't get to make union of /usr from OS subvolume with /usr from runtime subvolume</div><div><br></div><div>Nowadays I'm workarouding with:</div><div><br></div><div>systemd-nspawn --overlay=/var/lib/machines/os/usr:/var/lib/machines/runtime/usr:/usr -D /var/lib/machines/os --machine=foo -b -x<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 19, 2016 at 1:02 PM, Lennart Poettering <span dir="ltr"><<a href="mailto:lennart@poettering.net" target="_blank">lennart@poettering.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, 16.08.16 15:43, Juanjo Presa (<a href="mailto:juanjop@gmail.com">juanjop@gmail.com</a>) wrote:<br>
<br>
> Hi, I'm trying to compose a container with several layers and join together<br>
> with overlay option but seems that is not supported.<br>
><br>
> I want to get something like:<br>
> systemd-nspawn --overlay=/foo/ubuntu-base:/<wbr>foo/app-runtime:/foo/app:/ -D<br>
> /foo/bar --boot<br>
><br>
> Maybe I'm misunderstanding the overlay option.<br>
><br>
> So, what do you suggest to accomplish a similar model. Maybe just mount the<br>
> desired overlay sideways in /foo/bar and dismiss systemd-nspawn overlay<br>
> option? Something similar with btrfs subvolumes?<br>
><br>
> Thanks in advance.<br>
<br>
</div></div>Yeah, we currently do not support overlayfs as root dir, see<br>
<br>
<a href="https://github.com/systemd/systemd/issues/3847" rel="noreferrer" target="_blank">https://github.com/systemd/<wbr>systemd/issues/3847</a><br>
<br>
We should probably make that work. But do note that overlayfs<br>
introduces as many new problems as it solves IRL... Because of that<br>
there's no first level support for it in place right now (i.e. no<br>
support for using it as backing for --ephemeral or so).<br>
<span class="HOEnZb"><font color="#888888"><br>
Lennart<br>
<br>
--<br>
Lennart Poettering, Red Hat<br>
</font></span></blockquote></div><br></div>