<div dir="ltr"><div>Hello Ulrich,</div><div><br></div><div>Ohh believe me when I say this. I do not want to make it a read-only file system. I was a happy guy with a swing in my steps.</div><div>But mender-delta updates won't work without making it read-only rootfs . So this is just a big loop that I have involved myself in.</div><div>And from that day on, this has been a constant reason of despair in my life.<br></div><div><br></div><div>I raised an issue with mender. According to them, They haven't come across this issue. Which again is a difficult pill to swallow.</div><div><br></div><div>And On top of that there was a merge request sent to systemd which tries to address the same issue that I am talking about and it was rejected.</div><div>Can someone explain to me why it was rejected?</div><div><b><br></b></div><div>this is the heading --> <b>Make timedatectl nicely work with read-only filesystems
#8277 <br></b></div><div><b><br></b></div><div>But I can now see what was done in that merge request and try to imitate that.</div><div> <br></div><div><b></b></div><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></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 21, 2020 at 2:34 AM Ulrich Windl <<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-regensburg.de</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">>>> Shravan Singh <<a href="mailto:shravan@bluesparq.com" target="_blank">shravan@bluesparq.com</a>> schrieb am 20.08.2020 um 20:22 in<br>
Nachricht<br>
<<a href="mailto:CABjzrPTf8PtZ24_KOZ-xd8BDdJC0DhgWTaEnCdX1JDSCAujcPw@mail.gmail.com" target="_blank">CABjzrPTf8PtZ24_KOZ-xd8BDdJC0DhgWTaEnCdX1JDSCAujcPw@mail.gmail.com</a>>:<br>
> Hello Andrei,<br>
> <br>
> Thank you for your email. Yes, People have been telling me this:<br>
> <br>
> *Changing timezone globally requires changing /etc/localtime link which<br>
> requires writable /etc. *<br>
> <br>
> But no one is telling how to resolve my issue with a read-only rootfs.<br>
> There are other files which can be overwritten in /etc that are linked to a<br>
> file in /run directory for eg /etc/resolv.conf file.<br>
> Then why not /etc/localtime. Why is localtime guarded so much<br>
<br>
I guess this is due to the fact that a PDP 11 really wasn't a mobile computer;<br>
thus the system timezone was not expected to change every boot. ;-)<br>
<br>
> I refuse to believe that I am the only person facing this problem. But I<br>
> did find some leads now. Will keep you posted<br>
<br>
Traditionally /etc (thus rootfs) is writable. No problems. Making it<br>
read-only, you create a problem.<br>
<br>
> <br>
> But thank you so much for your response<br>
> <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>
> On Thu, Aug 20, 2020 at 2:00 PM Andrei Borzenkov <<a href="mailto:arvidjaar@gmail.com" target="_blank">arvidjaar@gmail.com</a>><br>
> wrote:<br>
> <br>
>> 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<br>
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.<br>
>> I<br>
>> > see the line<br>
>> > * r= get_timzeone()* in the function *context_read_data* all I want to<br>
>> know<br>
>> > is where is *get_timezone* defined and how is it calling<br>
*/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<br>
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<br>
>> 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>
>><br>
<br>
<br>
<br>
</blockquote></div>