aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-08-06 20:04:20 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-08-07 17:03:44 +0200
commit1d79338fa7391f8bc41bb74411c9a955e24d81cd (patch)
treeb030fbf89289b6a8fe987d769660a1e6d755b6db /doc
parentlinuxrc: Remove dead code (diff)
downloadgenkernel-1d79338fa7391f8bc41bb74411c9a955e24d81cd.tar.gz
genkernel-1d79338fa7391f8bc41bb74411c9a955e24d81cd.tar.bz2
genkernel-1d79338fa7391f8bc41bb74411c9a955e24d81cd.zip
initrd.scripts: prompt_user(): Read answer from $GK_PROMPT_FILE on timeout
This commit will bring back read timeout which was removed in Commit a280829. Read timeout is still disabled by default but can now be controlled via gk.prompt.timeout kernel command-line argument. When gk.prompt.timeout is != 0, the current prompt will be written to $GK_PROMPT_FILE. This will allow remote user to notice that there's a prompt. In addition, on timeout, $GK_PROMPT_FILE will be read allowing remote user to answer prompt and hopefully to fix the problem and resume booting. To make this work, gk.prompt.timeout will be set to 30 seconds by default when SSH usage is enabled. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/genkernel.8.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/genkernel.8.txt b/doc/genkernel.8.txt
index 3ab28ce..3ebd320 100644
--- a/doc/genkernel.8.txt
+++ b/doc/genkernel.8.txt
@@ -687,6 +687,15 @@ recognized by the kernel itself.
*gk.net.timeout.interface*=<...>::
By default we will wait up to 10 seconds for interface to show up.
+*gk.prompt.timeout*=<...>::
+By default a prompt within genkernel initramfs like shown when set
+*root* could not be found will never timeout. Use this option to set
+a timeout.
+
+NOTE: When *dosshd* is used, *gk.prompt.timeout* will be set to 30 seconds
+when not set. This will allow remote user to provide answer through
+*GK_PROMPT_FILE* which is set to '/tmp/current_prompt' by default.
+
*dosshd*::
Will bring up an interface and start a SSH daemon within initramfs
allowing to remotely unlock encrypted devices or just for debugging