<div dir="ltr">Hi,<div><br></div><div><div style="font-size:12.8px">With nspawn, when I use the following command:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">$ systemd-nspawn --directory=/os --read-only --overlay=/os/home/foobar:/<wbr>tmp/home/foobar:/home/foobar --user=foobar</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I expect the user foobar to be able to write in /home/foobar (in the container) but instead I get a Permission denied.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The man page says:</div><div style="font-size:12.8px"><div><br></div><div>--read-only:</div><div>   Mount the root file system read-only for the container.<br></div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Seems like the --read-only is tainting the --overlay option or maybe I don't get the concept of "root file system" in the nspawn context.<br></div><div style="font-size:12.8px">Could someone advice ?<br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">--</div><div style="font-size:12.8px">Fabien Meghazi</div><div class="gmail-yj6qo gmail-ajU" style="margin:2px 0px 0px;font-size:12.8px"></div></div></div>