commit:     a280829317f5e6f22e3e8486a5f62bb2b979656f
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 15 22:30:27 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Mon Jul 15 22:30:27 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=a2808293

initrd.script: prompt_user(): Remove read timeout

It really makes no sense to timeout while reading user input: We
only prompt when we are unable to continue. It's very unlikely
that we are able to continue after some time without any changes.
Instead, given that it can take some time to enter requested information,
a timeout will likely result in bad user experience when user run
into timeout while typing an UUID for example.

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 defaults/initrd.scripts | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index a47b1ed..4701857 100644
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -944,12 +944,12 @@ prompt_user() {
        bad_msg '- type "shell" for a shell'
        bad_msg '- type "q" to skip ...'
        printf "%s" "${2}(${oldvalue}) :: "
-       read -t 10 ${1}
-       if [ $? -gt 0 ]
-       then
-               # prompt timed out
-               printf "\n"
-       fi
+       read ${1}
+       #if [ $? -gt 0 ]
+       #then
+       #       # prompt timed out
+       #       printf "\n"
+       #fi
 
        case $(eval echo '$'${1}) in
                'q')

Reply via email to