]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsblk: document --sysroot
authorKarel Zak <kzak@redhat.com>
Tue, 19 Jun 2018 14:30:29 +0000 (16:30 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 21 Jun 2018 11:19:28 +0000 (13:19 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lsblk.8
misc-utils/lsblk.c

index 70838144839f3580c9b643f58268441a63e7a426..61e8f896f0eee4635edb66785cd4b3bc0054ee86 100644 (file)
@@ -134,6 +134,12 @@ Display version information and exit.
 Sort output lines by \fIcolumn\fP. This option enables \fB\-\-list\fR output format by default.
 It is possible to use the option \fI\-\-tree\fP to force tree-like output and
 than the tree branches are sorted by the \fIcolumn\fP.
+.TP
+.BR " \-\-sysroot " \fIdirectory\fP
+Gather data for a Linux instance other than the instance from which the lsblk
+command is issued.  The specified directory is the system root of the Linux
+instance to be inspected.  This option is designed for the testing purpose.
+
 .SH NOTES
 For partitions, some information (e.g. queue attributes) is inherited from the
 parent device.
index ceb9d461c6964f70f7add64d86d6ad628acd2537..156fcb46686f46adc4f8c943e41cc6bf49b50144 100644 (file)
@@ -1703,6 +1703,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -S, --scsi           output info about SCSI devices\n"), out);
        fputs(_(" -t, --topology       output info about topology\n"), out);
        fputs(_(" -x, --sort <column>  sort output by <column>\n"), out);
+       fputs(_("     --sysroot <dir>  use specified directory as system root\n"), out);
        fputs(USAGE_SEPARATOR, out);
        printf(USAGE_HELP_OPTIONS(22));