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

2016-12-09 Thread André Hartmann
Hi Michael, Am 09.12.2016 um 12:43 schrieb Michael Chapman: On Fri, 9 Dec 2016, Michael Chapman wrote: [...] 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

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

2016-12-09 Thread André Hartmann
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.timesyn

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

2016-12-09 Thread André Hartmann
Hi Martin, thanks for keeping our dialog alive :) 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

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

2016-12-08 Thread André Hartmann
Hi Martin, Am 04.12.2016 um 17:48 schrieb Martin Pitt: Hello André, André Hartmann [2016-12-01 11:20 +0100]: In other words: once this symlink is valid, you cannot invalidate it by make it a dangling symlink, you have to remove it. Can somebody confirm this observation? Not a dangling one

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

2016-12-01 Thread André Hartmann
Hi Martin, Am 01.12.2016 um 10:20 schrieb Martin Pitt: Hello André, André Hartmann [2016-12-01 9:50 +0100]: So I naively created the following link structure (which works): /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service -> /mnt/writeable/systemd-timesyncd -> /lib/s

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

2016-12-01 Thread André Hartmann
Hi, I'm running systemd [1] on an embbeded Linux with read-only filesystem. Due to missing realtime clock, I'd like to set the clock by either NTP or by hand. To set the time by hand with 'timedatectl set-time "time"', NTP has to be disabled, but I cannot run 'timedatectl set-ntp false' due to