From c24157f67ff86641d50c4a9b0f71d066c70e1746 Mon Sep 17 00:00:00 2001
From: shinygold <10763595+shinygold@users.noreply.github.com>
Date: Dec 15 2020 17:55:11 +0000
Subject: cryptsetup: add documentation for keyfile-timeout
(cherry picked from commit 4e1334512debb27f4a0c4a6da237a4b8d59fea08)
Related: #1763155
patch_name: 0298-cryptsetup-add-documentation-for-keyfile-timeout.patch
present_in_specfile: true
location_in_specfile: 298
squash_commits: true
---
diff --git a/man/crypttab.xml b/man/crypttab.xml
index 3574ce0..6074315 100644
--- a/man/crypttab.xml
+++ b/man/crypttab.xml
@@ -151,6 +151,17 @@
+
+
+ Specifies the timeout for the device on
+ which the key file resides and falls back to a password if
+ it could not be mounted. See
+ systemd-cryptsetup-generator8
+ for key files on external devices.
+
+
+
+ Force LUKS mode. When this mode is used, the
@@ -417,7 +428,8 @@
luks UUID=2505567a-9e27-4efe-a4d5-15ad146c258b
swap /dev/sda7 /dev/urandom swap
truecrypt /dev/sda2 /etc/container_password tcrypt
-hidden /mnt/tc_hidden /dev/null tcrypt-hidden,tcrypt-keyfile=/etc/keyfile
+hidden /mnt/tc_hidden /dev/null tcrypt-hidden,tcrypt-keyfile=/etc/keyfile
+external /dev/sda3 keyfile:LABEL=keydev keyfile-timeout=10s