summaryrefslogtreecommitdiffstats
path: root/term-utils/agetty.8
diff options
context:
space:
mode:
authorStef Walter2014-07-03 17:44:41 +0200
committerKarel Zak2014-07-28 16:33:33 +0200
commit6443dd43da28885302449aaca4b9c69c7f9585af (patch)
tree91e5f9a23be0605df5f032629118f62bb3d38a45 /term-utils/agetty.8
parentswaplabel: move swapon-common to include directory (diff)
downloadkernel-qcow2-util-linux-6443dd43da28885302449aaca4b9c69c7f9585af.tar.gz
kernel-qcow2-util-linux-6443dd43da28885302449aaca4b9c69c7f9585af.tar.xz
kernel-qcow2-util-linux-6443dd43da28885302449aaca4b9c69c7f9585af.zip
agetty: Reprompt and reprint /etc/issue when asked
Add an 'agetty --reload' command which asks all running agetty commands to display their prompts again. Several of the /etc/issue escape codes such as \4 and \S depend on variable data which can change after the agetty prompt is displayed. This can cause stale data to be displayed when a user looks at a VT, especially in cases of DHCP racing with system start up. We never want this to occur once the user has started typing a user name. So we detect when the user starts typing, after which no further reprompting occurs after that point. [kzak@redhat.com: - add #ifdefs to make it usable on non-inotify systems, - use futimens() with NULL timespec - add --reaload to usage()] Signed-off-by: Stef Walter <stefw-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'term-utils/agetty.8')
-rw-r--r--term-utils/agetty.86
1 files changed, 6 insertions, 0 deletions
diff --git a/term-utils/agetty.8 b/term-utils/agetty.8
index 27a0d1b86..4ef1e6b8c 100644
--- a/term-utils/agetty.8
+++ b/term-utils/agetty.8
@@ -252,6 +252,12 @@ Sleep seconds before open tty.
\-\-nice \fInumber\fP
Run login with this priority.
.TP
+\-\-reload
+Ask all running agetty instances to reload and update their displayed prompts,
+if the user has not yet commenced logging in. After doing so the command will
+exit. This feature might be unnsupported on systems without Linux
+.BR inotify (7).
+.TP
\-\-version
Display version information and exit.
.TP