]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(crypt): decryption when rd.luks.name is set
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Sat, 15 Jun 2024 19:21:44 +0000 (15:21 -0400)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Wed, 19 Jun 2024 16:06:26 +0000 (12:06 -0400)
modules.d/90crypt/parse-crypt.sh

index 39fc6d211e71aa0ae7fbe42c4a03cdcef365fc7c..9567a4a97a1e3bfc6db30ada92aec37c174eb62b 100755 (executable)
@@ -174,7 +174,7 @@ else
                 } >> "$hookdir/emergency/90-crypt.sh"
             fi
         done
-    elif getargbool 1 rd.auto; then
+    elif getargbool 1 rd.auto && [ -z "$(getargs rd.luks.name)" ]; then
         if [ -z "$DRACUT_SYSTEMD" ]; then
             {
                 printf -- 'ENV{ID_FS_TYPE}=="crypto_LUKS", RUN+="%s ' "$(command -v initqueue)"