<div dir="ltr"><div>Hello Andrei,</div><div><br></div><div>Thank you for your email. Yes, People have been telling me this:
<b>Changing timezone globally requires changing /etc/localtime link which<br>
requires writable /etc. <br></b></div><div><b><br></b></div><div>But no one is telling how to resolve my issue with a read-only rootfs. There are other files which can be overwritten in /etc that are linked to a file in /run directory for eg /etc/resolv.conf file.</div><div>Then why not /etc/localtime. Why is localtime guarded so much</div><div>I refuse to believe that I am the only person facing this problem. But I did find some leads now. Will keep you posted</div><div><br></div><div>But thank you so much for your response<br></div><div><br></div><div><b></b>
</div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span style="background-color:rgba(255,255,255,0)"></span>Regards,<br>Shravan Singh<br>(239) 243-0838<br><br>Blue Sparq, Inc.<br>928 NE 24th Lane unit 4 and 5.<br>Cape Coral, FL 33993<br><font size="1"><br>IMPORTANT: The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email by mistake, please notify the sender immediately and do not disclose the contents to anyone or make copies thereof.</font><br></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 20, 2020 at 2:00 PM Andrei Borzenkov <<a href="mailto:arvidjaar@gmail.com">arvidjaar@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">20.08.2020 18:55, Shravan Singh пишет:<br>
>Â Hello,<br>
> I have raspberry-pi cm3 which is running an embedded yocto poky linux<br>
> warrior branch with mender.<br>
> <br>
> I have made my rootfs as read-only because of which I am not able to use<br>
> timedatectl to change the system time zone.<br>
> <br>
> I was looking through the c code which makes me think that even if I did<br>
> create and change symlink to point to a file in a read and write location<br>
> of the memory. It won't make any difference.<br>
> <br>
<br>
Changing timezone globally requires changing /etc/localtime link which<br>
requires writable /etc.<br>
<br>
> I looked into the file timedated.c and here is where I wanted some help. I<br>
> see the line<br>
> * r= get_timzeone()* in the function *context_read_data* all I want to know<br>
> is where is *get_timezone* defined and how is it calling */etc/localtime*<br>
> <br>
<br>
src/basic/time-util.c<br>
<br>
grep is wonderful tool.<br>
<br>
> Any help will be appreciated. I have raised questions everywhere and I am<br>
> not getting any help at all.<br>
> <br>
> And I am not an embedded developer. This place is my last cry for help<br>
> Regards,<br>
> Shravan Singh<br>
> (239) 243-0838<br>
> <br>
> Blue Sparq, Inc.<br>
> 928 NE 24th Lane unit 4 and 5.<br>
> Cape Coral, FL 33993<br>
> <br>
> IMPORTANT: The contents of this email and any attachments are confidential.<br>
> They are intended for the named recipient(s) only. If you have received<br>
> this email by mistake, please notify the sender immediately and do not<br>
> disclose the contents to anyone or make copies thereof.<br>
> <br>
> <br>
> _______________________________________________<br>
> systemd-devel mailing list<br>
> <a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
> <br>
<br>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</blockquote></div>