From 8352e9dfae705c08bb9320b929b64b74d68acfd3 Mon Sep 17 00:00:00 2001 From: Clemens Lang Date: Thu, 5 Jan 2023 20:07:43 +0000 Subject: [PATCH] contrib: dracut: Do not timeout waiting for pw systemd-ask-password has a default timeout of 90 seconds, which means that dracut will fall back to the rescue shell 4.5 minutes after boot if no password is entered. This is undesirable when combined with, for example, unlocking remotely using dracut-sshd and systemd-tty-ask-password-agent. See also https://github.com/gsauthof/dracut-sshd#timeout and https://bugzilla.redhat.com/show_bug.cgi?id=868421. Reviewed-by: Brian Behlendorf Signed-off-by: Clemens Lang Closes #14341 --- contrib/dracut/90zfs/zfs-load-key.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/dracut/90zfs/zfs-load-key.sh.in b/contrib/dracut/90zfs/zfs-load-key.sh.in index d916f43b4..8e6846831 100755 --- a/contrib/dracut/90zfs/zfs-load-key.sh.in +++ b/contrib/dracut/90zfs/zfs-load-key.sh.in @@ -34,7 +34,7 @@ _load_key_cb() { case "${KEYLOCATION%%://*}" in prompt) for _ in 1 2 3; do - systemd-ask-password --no-tty "Encrypted ZFS password for ${dataset}" | zfs load-key "${ENCRYPTIONROOT}" && break + systemd-ask-password --timeout=0 --no-tty "Encrypted ZFS password for ${dataset}" | zfs load-key "${ENCRYPTIONROOT}" && break done ;; http*)