]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
agetty: add --chroot to usage() and man page
authorKarel Zak <kzak@redhat.com>
Fri, 5 Apr 2013 10:55:20 +0000 (12:55 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 5 Apr 2013 10:55:20 +0000 (12:55 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/agetty.8
term-utils/agetty.c

index 9cc611b039fd080176f835de2fafb1f7d7246dbb..ec279f97f4eb28a117264cdf3a50aa55a7489265 100644 (file)
@@ -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
index 8f9c3244e1f86ab97b7540f457f985f83cc32b8a..f877d0e360c6ecda137bbc07fe83a564db66da69 100644 (file)
@@ -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);