]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(systemd-pcrphase): do not print an error if an optional binary is not found
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Thu, 22 Jan 2026 10:04:31 +0000 (11:04 +0100)
committerBenjamin Drung <bdrung@ubuntu.com>
Thu, 22 Jan 2026 12:51:16 +0000 (13:51 +0100)
Fixes #2094

modules.d/11systemd-pcrphase/module-setup.sh

index bc6e93cc525ac54a04636ef8cd31d2b033afcc26..0a2a4fa78f730d39c41ea8476b5c6e97d53f3502 100755 (executable)
@@ -6,8 +6,9 @@
 check() {
     # If the binary(s) requirements are not fulfilled the module can't be installed.
     # systemd-255 renamed the binary, check for old and new location.
-    if ! require_binaries "$systemdutildir"/systemd-pcrphase \
-        && ! require_binaries "$systemdutildir"/systemd-pcrextend; then
+    if ! require_any_binary \
+        "$systemdutildir"/systemd-pcrextend \
+        "$systemdutildir"/systemd-pcrphase; then
         return 1
     fi