<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Feb 22, 2015 at 6:04 PM, Andrei Borzenkov <span dir="ltr"><<a href="mailto:arvidjaar@gmail.com" target="_blank">arvidjaar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Do you really need to fully overlay root? I.e. is it possible to just<br>
(bind-)mount /etc, /var? /usr should be possible to retain read-only.<br></blockquote><div><br></div><div>Once the upper layer of the overlayfs is JFFS2 (as intended), then it's more interesting to have all of / overlayed.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
> - and dutifully starts them all again once we're headed towards multi-user.target<br>
><br>
> That's a *lot* of noise in the startup process!<br>
<br>
</span>But does it actually work?<br></blockquote><div><br></div><div>Yes, it does! It's so awesome that all of this machinery is built in, and doesn't require reams of shell scripts.</div><div><br></div><div>So, it totally works, it just has performance warts because of my weird use case. :-)</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I believe that if you just overlay /etc with probably new<br>
default.target and run daemon-reload followed by isolate it /should/<br>
detect that some services are missing from new default.target and<br>
continue.</blockquote><div><br></div><div></div></div></div><div class="gmail_extra">systemd can do all of that for me. The problem right now is that during the initrd stage, it has access to *all* of the system services, so dutifully starts them all up. Then isolates (kills them), switches root, and starts them all up again.</div></div>