Blame 0006-fix-crypt-decryption-when-rd.luks.name-is-set.patch

43355b
From 6cb58e86ae65cf9922023b12e889446323a89080 Mon Sep 17 00:00:00 2001
43355b
From: Laszlo Gombos <laszlo.gombos@gmail.com>
43355b
Date: Sat, 15 Jun 2024 15:21:44 -0400
43355b
Subject: [PATCH 6/6] fix(crypt): decryption when rd.luks.name is set
43355b
43355b
---
43355b
 modules.d/90crypt/parse-crypt.sh | 2 +-
43355b
 1 file changed, 1 insertion(+), 1 deletion(-)
43355b
43355b
diff --git a/modules.d/90crypt/parse-crypt.sh b/modules.d/90crypt/parse-crypt.sh
43355b
index 39fc6d21..9567a4a9 100755
43355b
--- a/modules.d/90crypt/parse-crypt.sh
43355b
+++ b/modules.d/90crypt/parse-crypt.sh
43355b
@@ -174,7 +174,7 @@ else
43355b
                 } >> "$hookdir/emergency/90-crypt.sh"
43355b
             fi
43355b
         done
43355b
-    elif getargbool 1 rd.auto; then
43355b
+    elif getargbool 1 rd.auto && [ -z "$(getargs rd.luks.name)" ]; then
43355b
         if [ -z "$DRACUT_SYSTEMD" ]; then
43355b
             {
43355b
                 printf -- 'ENV{ID_FS_TYPE}=="crypto_LUKS", RUN+="%s ' "$(command -v initqueue)"
43355b
-- 
43355b
2.42.0
43355b