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

André Hartmann andre.hartmann at iseg-hv.de
Tue Jan 10 13:35:51 UTC 2017


Hi Martin,

sorry for the *long* delay, but I was sick and then on christmas vacation.

 > Again this requires /etc/systemd/system/ to be writable, of course --
 > but if you want to allow users to configure the system
 > (/etc/systemd/system/ or /etc/timezone etc.) you need to have at least
 > these directories writable.

Ok, if this is the only possibility, then I have to go this road.

I'm currently bound to a "slightly higher priority project", but may 
come back to you once this appears on my desk again.

Best regards (and by the way, thanks for all your hints).

Best regards,
André

Am 10.12.2016 um 18:01 schrieb Martin Pitt:
> Hello André,
>
> André Hartmann [2016-12-09 10:46 +0100]:
>> To sum up again what I actually want to achive:
>>
>> I want to use NTP after bootup by default, but in case no NTP is available,
>> the user should be able to set the date and time by hand
>> with timedatectl. But timedatectl refuses to do so, if "NTP is enabled".
>>
>> And this is my main problem: I don't know how timedatectl decides
>> if NTP is enabled or not.
>
> It checks whether systemd-timesyncd.service is enabled. Likewise,
> enabling/disabling NTP with "timedatectl set-ntp" is just a frontend
> for "systemctl enable/disable systemd-timesyncd.service".
>
> Again this requires /etc/systemd/system/ to be writable, of course --
> but if you want to allow users to configure the system
> (/etc/systemd/system/ or /etc/timezone etc.) you need to have at least
> these directories writable.
>
>>>> # systemctl status systemd.timesyncd
>>>> *  systemd.timesyncd.service
>>>>    Loaded: not-found (Reason: No such file or directory)
>>>>    Active: inactive (dead)
>
> It's systemd-timesyncd (dash, not dot).
>
> Viele Grüße,
>
> Martin
>


-- 
Best regards / Mit freundlichen Grüßen
André Hartmann, Dipl.-Ing. (FH)
Software Project Manager

iseg Spezialelektronik GmbH         |  phone: ++49 (0)351 26996-43
Bautzner Landstr. 23                |  fax:   ++49 (0)351 26996-21
D-01454 Radeberg / Rossendorf       |  web:   www.iseg-hv.com

Geschäftsführer / Managing director: Dr. F. Gleisberg, Dr. J. Pöthig
Amtsgericht / Lower district court: Dresden HRB 16250
Ust.-Id.-Nr. / VAT-ID: DE812508942

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder
diese E-Mail irrtümlich erhalten haben, informieren Sie bitte
sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser
Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail
in error) please notify the sender immediately and delete this e-mail.
Any unauthorized copying, disclosure or distribution of the material
in this e-mail is strictly forbidden.


More information about the systemd-devel mailing list