<div dir="ltr"><div dir="ltr">On Tue, Mar 31, 2020 at 1:10 AM Lennart Poettering <<a href="mailto:mzxreary@0pointer.de">mzxreary@0pointer.de</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fr, 27.03.20 10:17, Preston L. Bannister (<a href="mailto:preston@bannister.us" target="_blank">preston@bannister.us</a>) wrote:<br>
<br>> Had the (possibly) clever notion of using an overlayfs as the root mount,<br>
> with a tmpfs as the upper, and the usual persistent volume as the<br>
> lower.<br>
<br>
Current systemd versions support this natively, just boot with<br>
"systemd.volatile=overlay" on the kernel cmdline. Doubt this is in<br>
centos8 yet, though.<br></blockquote><div><br></div><div>I can confirm that adding "systemd.volatile=yes" on the kernel cmdline with Centos 8 results in failed boot. Some obscure error related to initramfs that I have not tried to typify. Also Centos 8 has systemd 232, and it looks like "systemd.volatile=overlay" handed later in systemd.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Note that overlayfs is a weird fs, it has strange, non-posixy<br>
semantics (inode nrs a fucked). It generally doesn't work as well as<br>
people want it to work, and while you might get away with using it for<br>
small, well-defined scenarios it's not suitable for complex, general<br>
purpose systems to run as root fs.<br>
<br>
"systemd.volatile=overlay" is a nice tool for testing and development,<br>
and maybe some very specific setups, but it's not really something i'd<br>
want to deploy in production in big scale.<br></blockquote><div><br></div><div>OK - had not hear that before. Thanks. Did see some odd behavior, but assumed (and still) the fault was mine.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Look what src/volatile-root/volatile-root.c in current systemd<br>
versions is doing. It's relatively straight-forward. You can do<br>
something similar with a shell script.<br></blockquote><div><br></div><div>Looking. </div><div><br></div></div></div>