]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(systemd-timedated): add missing dbus-org.freedesktop.timedate1.service
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Thu, 22 Dec 2022 14:19:49 +0000 (15:19 +0100)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Sat, 24 Dec 2022 14:30:54 +0000 (14:30 +0000)
Without this service, timedatectl fails to run in the initrd.

```
sh-5.2# timedatectl
Failed to query server: Could not activate remote peer: activation request failed: unknown unit.
sh-5.2# systemctl status dbus | grep timedate
Dec 22 13:57:03 sd-net-test dbus-broker-launch[219]: Activation request for 'org.freedesktop.timedate1' failed: The systemd unit 'dbus-org.freedesktop.timedate1.service' could not be found.
```

modules.d/01systemd-timedated/module-setup.sh

index 58a1ef04e6a70f2d542d5a15170e2f03dc73dc07..5f85f2aeaf6566dfe58148c69be5eaed6c3d30c7 100755 (executable)
@@ -34,6 +34,7 @@ install() {
         "$dbussystemservices"/org.freedesktop.timedate1.service \
         "$systemdutildir"/systemd-timedated \
         "$systemdsystemunitdir"/systemd-timedated.service \
+        "$systemdsystemunitdir"/dbus-org.freedesktop.timedate1.service \
         timedatectl
 
     # Install the hosts local user configurations if enabled.