<html>
<head>
</head>
<body text="#000000" bgcolor="#ffffff">
<div style="color: black;">
<div style="color: black;">
<p style="margin: 0 0 1em 0; color: black;">The ostree docs have a good description of what to do here: <a href="https://ostree.readthedocs.io/en/latest/manual/adapting-existing/">https://ostree.readthedocs.io/en/latest/manual/adapting-existing/</a></p>
<p style="margin: 0 0 1em 0; color: black;">In particular, see the "System layout" section. </p>
</div>
<div style="color: black;">
<p style="color: black; font-size: 10pt; font-family: Arial, sans-serif; margin: 8pt 0;">On June 17, 2018 12:03:22 PM Jérémy Rosen <jeremy.rosen@smile.fr> wrote:</p>
<blockquote type="cite" class="gmail_quote" style="margin: 0 0 0 0.75ex; border-left: 1px solid #808080; padding-left: 0.75ex;">
Hello everybody<br>
<br>
I am trying to understand the recommanded way to deal with read-only
rootfs...<br>
<br>
my understanding is that (slightly simplified)<br>
* /run must be a tmpfs<br>
* /var must be writable, and will usually be persistant (can be a
tmpfs too)<br>
* everything else can be read-only<br>
<br>
My problem comes with populating an empty /var. There seems to be
hints to a systemd-provided mechanism to do that, but I can't find
any documentation for it<br>
<br>
Apparently, tmpfiles.d should copy the content from
/usr/share/factory to /var when /var is empty, but I can't find what
actually implements that<br>
<br>
* is it dynamically added in /run ?<br>
* is it just a recommanded way, and I have to implemented myself ?
if yes, is the directory /usr/share/factory documented anywhere ?<br>
* what qualifies as "empty /var" ? (this is mostly about being
robust to power-loss during the copying of /var)<br>
<br>
Any hints would be welcomed<br>
<br>
thx<br>
Jeremy<br>
<br>
<br>
<div class="moz-signature">-- <br>
<div>
<link href="https://fonts.googleapis.com/css?family=Raleway"
rel="stylesheet" type="text/css">
<font face="Raleway, regular">
<table style="padding:20px;margin-bottom:-10px" border="0">
<tbody>
<tr>
<td style="font-size:13px; color:#ff8054; text-align:
center; padding-right:30px"> <a
href="http://www.smile.eu/"> <img
style="max-width:100%; height:auto"
src="http://ftp.smile.fr/client/Communication/signature/img/Logo-new.png"
alt="SMILE"> </a><br>
<br>
<p style="line-heigth:8px">20 rue des Jardins<br>
92600 Asnières-sur-Seine</p>
</td>
<td style="border-left: 1px solid #3b7ffe;
padding-left:20px; font-size:13px; color:#ff8054;">
<div style="color:#ff8054; font-size:14px;"> <b>Jérémy
ROSEN</b> </div>
<div style="color:#3b7ffe; font-size:13px;">
Architecte technique<br>
Responsable de l'expertise Smile-ECS </div>
<br>
<div style="color:#3b7ffe; font-size:13px;"> <span
style="white-space: nowrap"><img
style="margin-right:5px"
src="http://ftp.smile.fr/client/Communication/signature/img/mail.png"
alt="email" width="12" height="10"> <a
href="mailto:jeremy.rosen@smile.fr"
style="color:#3b7ffe; font-size:13px;
text-decoration:none;">jeremy.rosen@smile.fr</a>
</span> <br>
<span style="white-space: nowrap"><img
style="margin-right:5px"
src="http://ftp.smile.fr/client/Communication/signature/img/phone.png"
alt="phone" width="10" height="10"></span>
+33141402967 <br>
<span style="white-space: nowrap"><img
style="margin-right:5px"
src="http://ftp.smile.fr/client/Communication/signature/img/web.png"
alt="url" width="12" height="12">
<a href="http://www.smile.eu"
style="color:#3b7ffe; font-size:13px;
text-decoration:none;">http://www.smile.eu</a> </span>
</div>
<br>
<div> <span><a style="margin-right:5px"
href="https://twitter.com/GroupeSmile"><img
src="http://ftp.smile.fr/client/Communication/signature/img/rs-twitter.png"
alt="Twitter" style="max-width:100%;
height:auto"></a></span> <span><a
style="margin-right:5px"
href="https://www.facebook.com/smileopensource"><img
src="http://ftp.smile.fr/client/Communication/signature/img/rs-facebook.png"
alt="Facebook" style="max-width:100%;
height:auto"></a></span> <span><a
style="margin-right:5px"
href="https://www.linkedin.com/company/smile"><img
src="http://ftp.smile.fr/client/Communication/signature/img/rs-linkedin.png"
alt="LinkedIn" style="max-width:100%;
height:auto"></a></span> <span><a
style="margin-right:5px"
href="https://github.com/Smile-SA"><img
src="http://ftp.smile.fr/client/Communication/signature/img/rs-github.png"
alt="Github" style="max-width:100%;
height:auto"></a></span> </div>
</td>
</tr>
</tbody>
</table>
<br>
<div> <a
href="http://smile.eu/?utm_source=signature&utm_medium=email&utm_campaign=signature"><img
src="http://signature.smile.eu/assets/img/bandeau_mail_smile2017.gif.gif"
alt="Découvrez l’univers Smile, rendez-vous sur
smile.eu" border="0"></a></div>
<br>
<div style="color:#a3acb5; font-size:10px;"> <img
src="http://ftp.smile.fr/client/Communication/signature/img/eco.png"
alt="eco" width="13" height="11"> Pour la planète,
n'imprimez ce mail que si c'est nécessaire </div>
</font>
</div>
</div>
_______________________________________________<br>
systemd-devel mailing list<br>
<a class="aqm-autolink aqm-autowrap" href="mailto:systemd-devel%40lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a><br>
<a class="aqm-autolink aqm-autowrap" href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br></blockquote>
</div>
</div>
</body>
</html>