<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Alvin Šipraga wrote on 08/09/2020
22:54:<br>
</div>
<blockquote type="cite"
cite="mid:8dfacbeb-2a65-b972-5e70-6003a0271528@bang-olufsen.dk">
<pre class="moz-quote-pre" wrap="">Hi,
On 9/8/20 4:12 PM, Colin Guthrie wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">2. Set your /etc/ master image to make /etc/localtime to be a symlink to
/run/localtime and then ensure /run/localtime is a symlink to the
appropriate file in /usr during early boot (e.g. in initramfs). Then
when you want to to change the timezone, just update the /run/ symlink.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
This might not work as expected - systemd sometimes assumes that
/etc/localtime is a symlink into /usr/share/zoneinfo and will not
understand double symlinks. See src/basic/time-util.c:get_timezone() for
at least one example.</pre>
</blockquote>
<p>But that really depends on what you define as "not work". Sure
timedatectl may not report correctly, but that shouldn't matter
too much if you're not using to query or update (the latter
obviously won't work anyway), but for the purposes of software
*using* the timezone, I don't tihnk anything will actually break.</p>
<p>Just my take on it, and could indeed be wrong. Just seems like a
lot of discussion over quite a minor point! :-)<br>
</p>
<p>Col</p>
<pre class="moz-signature" cols="72">--
Colin Guthrie
gmane(at)colin.guthr.ie
<a class="moz-txt-link-freetext" href="http://colin.guthr.ie/">http://colin.guthr.ie/</a>
</pre>
</body>
</html>