From 55dd24711be711763b5eca2dcaa23d0c17bbe6cc Mon Sep 17 00:00:00 2001
From: Owen Xie <15828145+nfusionz@users.noreply.github.com>
Date: Sun, 31 May 2026 04:20:11 -0400
Subject: [PATCH 1/2] dracut: avoid requiring systemd-reply-password at build
 time

Fixes dracut module issue in non-systemd environments where
systemd-reply-password.path() is called when it doesn't exist,
causing an error. The path isn't used for the non-systemd flow.
---
 src/luks/dracut/clevis/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/luks/dracut/clevis/meson.build b/src/luks/dracut/clevis/meson.build
index f37cc3c..e6230f3 100644
--- a/src/luks/dracut/clevis/meson.build
+++ b/src/luks/dracut/clevis/meson.build
@@ -5,7 +5,7 @@ if dracut.found()
 
   dracut_data = configuration_data()
   dracut_data.merge_from(data)
-  dracut_data.set('SYSTEMD_REPLY_PASS', sd_reply_pass.path())
+  dracut_data.set('SYSTEMD_REPLY_PASS', sd_reply_pass.found() ? sd_reply_pass.path() : '')
 
   configure_file(
     input: 'module-setup.sh.in',
-- 
2.54.0

