[systemd-devel] Getting timesync on RO fs

Greg Oliver oliver.greg at gmail.com
Thu Nov 9 01:04:59 UTC 2017


On Sun, Nov 5, 2017 at 9:41 AM, RĂ©mi Pincent <mr.lahorde at laposte.net> wrote:

> Hello,
>
> Since systemd 235, timesyncd stamp file has been moved to
> /var/lib/systemd/timesync/clock . As my /var partition is RO is created a
> symlink to a clock file located in a RW partition, I got this error :
>
> *Nov 05 16:05:44 rpi-home-master systemd[12023]:
> systemd-timesyncd.service: Failed to set up special execution directory in
> /var/lib: Read-only file system*
> *Nov 05 16:05:44 rpi-home-master systemd[12023]:
> systemd-timesyncd.service: Failed at step STATE_DIRECTORY spawning
> /usr/lib/systemd/systemd-timesyncd: Read-only file system*
>
> I've also tried to create a /var/lib/systemd/timesync symlink to a
> timesync folder in a RW partition. I get this error :
>
> *Nov 05 16:37:42 rpi-home-master systemd[17668]:
> systemd-timesyncd.service: Failed to set up special execution directory in
> /var/lib: Not a directory*
> *Nov 05 16:37:42 rpi-home-master systemd[17668]:
> systemd-timesyncd.service: Failed at step STATE_DIRECTORY spawning
> /usr/lib/systemd/systemd-timesyncd: Not a directory*
>
> How can I have timesyncd clock file in a separate partition?
>
>
If you are like me and absolutely had to have all r/o physical filesystems
and tmpfs for everything else, I switched to chrony and linked adjtime to a
r/w tmpfs at boot.  The issues I had with ntp went away and I no longer had
to worry about wearing out my SD cards.

-Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20171108/a9eec1aa/attachment-0001.html>


More information about the systemd-devel mailing list