]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(systemd-sysctl): systemd-modules-load is not a dependency
authorJo Zzsi <jozzsicsataban@gmail.com>
Mon, 2 Sep 2024 14:01:06 +0000 (10:01 -0400)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Mon, 9 Sep 2024 12:21:17 +0000 (08:21 -0400)
After= in systemd-sysctl.service does not imply dependency
on systemd-modules-load.

modules.d/01systemd-sysctl/module-setup.sh
modules.d/01systemd-udevd/module-setup.sh

index 64f93f9a47a8facfc65d47f88b3b83fbe5a81048..d5abe575b86b782db8db7fbefe213b0f1affc0e4 100755 (executable)
@@ -12,15 +12,6 @@ check() {
     return 255
 }
 
-# Module dependency requirements.
-depends() {
-
-    # This module has external dependency on other module(s).
-    echo systemd-modules-load
-    # Return 0 to include the dependent module(s) in the initramfs.
-    return 0
-}
-
 # Install the required file(s) for the module in the initramfs.
 install() {
 
index 8d4a8b9026be4b81a785b5dc0b69278003a1fee1..58ac83d77a5754e9be69782db48303346ee8c874 100755 (executable)
@@ -4,7 +4,6 @@
 
 # Prerequisite check(s) for module.
 check() {
-
     # If the binary(s) requirements are not fulfilled the module can't be installed.
     require_binaries \
         udevadm \
@@ -13,22 +12,18 @@ check() {
 
     # Return 255 to only include the module, if another module requires it.
     return 255
-
 }
 
 # Module dependency requirements.
 depends() {
-
     # This module has external dependency on other module(s).
-    echo udev-rules systemd systemd-sysctl
+    echo udev-rules systemd systemd-sysctl systemd-modules-load
     # Return 0 to include the dependent module(s) in the initramfs.
     return 0
-
 }
 
 # Install the required file(s) and directories for the module in the initramfs.
 install() {
-
     inst_multiple -o \
         "$udevrulesdir"/99-systemd.rules \
         "$systemdutildir"/systemd-udevd \
@@ -72,5 +67,4 @@ install() {
     # Install required libraries.
     _arch=${DRACUT_ARCH:-$(uname -m)}
     inst_libdir_file {"tls/$_arch/",tls/,"$_arch/",}"libudev.so.*"
-
 }