]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
feat(systemd-timedated): add systemd-timedated module to the spec file
authorJóhann B. Guðmundsson <johannbg@gmail.com>
Wed, 14 Apr 2021 18:17:03 +0000 (18:17 +0000)
committerHarald Hoyer <harald@hoyer.xyz>
Thu, 22 Apr 2021 12:25:36 +0000 (14:25 +0200)
dracut.spec
modules.d/01systemd-timedated/module-setup.sh

index 07e767ce6dd990352a1708f5e941251c8dd7ce85..4603eb853caece39c8f41401841ac2a3963c16e8 100644 (file)
@@ -332,6 +332,7 @@ echo 'dracut_rescue_image="yes"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/
 %{dracutlibdir}/modules.d/01systemd-resolved
 %{dracutlibdir}/modules.d/01systemd-sysctl
 %{dracutlibdir}/modules.d/01systemd-sysusers
+%{dracutlibdir}/modules.d/01systemd-timedated
 %{dracutlibdir}/modules.d/01systemd-timesyncd
 %{dracutlibdir}/modules.d/03modsign
 %{dracutlibdir}/modules.d/03rescue
index af331ef6c33d04815c5476201184951eb72b11e4..58a1ef04e6a70f2d542d5a15170e2f03dc73dc07 100755 (executable)
@@ -6,8 +6,10 @@
 check() {
 
     # If the binary(s) requirements are not fulfilled the module can't be installed
-    require_binaries timedatectl || return 1
-    require_binaries "$systemdutildir"/systemd-timedated || return 1
+    require_binaries \
+        timedatectl \
+        "$systemdutildir"/systemd-timedated \
+        || return 1
 
     # Return 255 to only include the module, if another module requires it.
     return 255
@@ -18,7 +20,7 @@ check() {
 depends() {
 
     # This module has external dependency on other module(s).
-    echo dbus systemd
+    echo dbus
     # Return 0 to include the dependent module(s) in the initramfs.
     return 0
 
@@ -38,6 +40,6 @@ install() {
     if [[ $hostonly ]]; then
         inst_multiple -H -o \
             "$systemdsystemconfdir"/systemd-timedated.service \
-            "$systemdsystemconfdir"/systemd-timedated.service/*.conf
+            "$systemdsystemconfdir/systemd-timedated.service/*.conf"
     fi
 }