]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
revert(crypt): do not unlock encrypted devices by default during boot
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Sun, 21 Jul 2024 13:04:13 +0000 (09:04 -0400)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sun, 21 Jul 2024 15:39:06 +0000 (11:39 -0400)
This reverts commit 2339acfaeee60d6bb26a1103db2e53bc8f9cb2d1.

This change needs more test cases and more granular conditionals.

modules.d/90crypt/parse-crypt.sh

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