summaryrefslogtreecommitdiffstats
path: root/term-utils
diff options
context:
space:
mode:
authorKarel Zak2013-04-05 12:55:20 +0200
committerKarel Zak2013-04-05 12:55:20 +0200
commit4b856ee4b93979365142f9ab274e970bad88a7b8 (patch)
tree95e91a2f8ac10605218a7efd1fcd8d678317e238 /term-utils
parentagetty: add -E, --remote to usage() (diff)
downloadkernel-qcow2-util-linux-4b856ee4b93979365142f9ab274e970bad88a7b8.tar.gz
kernel-qcow2-util-linux-4b856ee4b93979365142f9ab274e970bad88a7b8.tar.xz
kernel-qcow2-util-linux-4b856ee4b93979365142f9ab274e970bad88a7b8.zip
agetty: add --chroot to usage() and man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'term-utils')
-rw-r--r--term-utils/agetty.83
-rw-r--r--term-utils/agetty.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/term-utils/agetty.8 b/term-utils/agetty.8
index 9cc611b03..ec279f97f 100644
--- a/term-utils/agetty.8
+++ b/term-utils/agetty.8
@@ -176,6 +176,9 @@ Please read the SECURITY NOTICE below if you want to use this.
Wait for any key before dropping to the login prompt. Can be combined
with \fB\-\-autologin\fP to save memory by lazily spawning shells.
.TP
+\-r, \-\-chroot \fI"directory"\fP
+Change root to the specified directory.
+.TP
\-R, \-\-hangup
Do call vhangup() for a virtually hangup of the specified terminal.
.TP
diff --git a/term-utils/agetty.c b/term-utils/agetty.c
index 8f9c3244e..f877d0e36 100644
--- a/term-utils/agetty.c
+++ b/term-utils/agetty.c
@@ -1651,6 +1651,7 @@ static void __attribute__ ((__noreturn__)) usage(FILE *out)
fputs(_(" -n, --skip-login do not prompt for login\n"), out);
fputs(_(" -o, --login-options <opts> options that are passed to login\n"), out);
fputs(_(" -p, --loginpause wait for any key before the login\n"), out);
+ fputs(_(" -r, --chroot <dir> change root to the directory\n"), out);
fputs(_(" -R, --hangup do virtually hangup on the tty\n"), out);
fputs(_(" -s, --keep-baud try to keep baud rate after break\n"), out);
fputs(_(" -t, --timeout <number> login process timeout\n"), out);