]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(systemd-initrd): only included if another module depends on it
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Sat, 20 Apr 2024 17:23:10 +0000 (13:23 -0400)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sat, 20 Apr 2024 19:56:57 +0000 (15:56 -0400)
modules.d/01systemd-initrd/module-setup.sh

index 255af6ef7d97577f6bcc6d382423e08375966e27..1671bd2ad4194f32ad792d6c5efd94e10735877f 100755 (executable)
@@ -4,7 +4,8 @@
 check() {
     [[ $mount_needs ]] && return 1
 
-    return 0
+    # Return 255 to only include the module, if another module requires it.
+    return 255
 }
 
 # called by dracut