[systemd-devel] systemd-timesyncd with read-only root filesystem

Michael Chapman mike at very.puzzling.org
Fri Dec 9 11:38:10 UTC 2016


On Fri, 9 Dec 2016, André Hartmann wrote:
> Hi Michael,
>
> Am 09.12.2016 um 10:25 schrieb Michael Chapman:
>>  On Thu, 8 Dec 2016, André Hartmann wrote:
>>  [...]
>> >  Which confuses me is the inconsistency between
>> >  "systemctl status systemd.timesyncd" and "timedatectl status":
>> > 
>> >  # systemctl status systemd.timesyncd
>> >  *  systemd.timesyncd.service
>> >     Loaded: not-found (Reason: No such file or directory)
>> >     Active: inactive (dead)
>>
>>  You've got a typo there -- the unit is called systemd-timesyncd.service,
>
> Your'e right, I had a typo. But after checking again, I discovered the 
> following:
>
> cat /etc/systemd/system/sysinit.target.wants/systemd-timesyncd
>
> (empty)
>
> But systemctl status systemd-timesyncd says active (running)
>
> The link structure is as follows:
>
> /etc/systemd/system/sysinit.target.wants/systemd-timesyncd ->
> /mnt/writeable/systemd-timesyncd ->
> /dev/null

You will need to use the .service extension on at least the first of those 
links. systemd will only consider links in that directory that have valid 
unit names. (I'm pretty sure the intermediate link's name doesn't matter, 
but I wouldn't want to rely on that -- best just to use valid full unit 
names everywhere.)

- Michael


More information about the systemd-devel mailing list