On Sun, Nov 5, 2017 at 9:41 AM, Rémi Pincent <[email protected]> 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
_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to