mgahagan / rpms / dracut

Forked from rpms/dracut 6 years ago
Clone
Blob Blame History Raw
From 4ea1126e5fcd8d2c1e00194c6e0a10e9293e9d86 Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com>
Date: Fri, 30 Nov 2012 15:22:43 +0100
Subject: [PATCH] crypt/crypt-run-generator.sh: do not timeout for LUKS
 passwords with systemd

---
 modules.d/90crypt/crypt-run-generator.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules.d/90crypt/crypt-run-generator.sh b/modules.d/90crypt/crypt-run-generator.sh
index bacdbbe..6c322c2 100755
--- a/modules.d/90crypt/crypt-run-generator.sh
+++ b/modules.d/90crypt/crypt-run-generator.sh
@@ -22,7 +22,7 @@ if strstr "$(cryptsetup --help)" "allow-discards"; then
     fi
 fi
 
-echo "$luks $dev none $allowdiscards" >> /etc/crypttab
+echo "$luks $dev - timeout=0,$allowdiscards" >> /etc/crypttab
 
 if command -v systemctl >/dev/null; then
     systemctl daemon-reload