]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mount: add verity example to man page
authorKarel Zak <kzak@redhat.com>
Thu, 5 Dec 2019 14:32:23 +0000 (15:32 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 5 Dec 2019 14:32:23 +0000 (15:32 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/mount.8

index 5ab776c07695db2e358ba4dc5baa394a312d419f..5965eaac0be4a5417d3279e105d24d2a2136bffa 100644 (file)
@@ -2396,6 +2396,20 @@ If the hash tree device is embedded in the source volume,
 .RE
 .PP
 Supported since util-linux v2.35.
+.PP
+For example commands:
+.sp
+.RS
+.nf
+.B mksquashfs /etc /tmp/etc.squashfs
+.B dd if=/dev/zero of=/tmp/etc.hash bs=1M count=10
+.B veritysetup format /tmp/etc.squashfs /tmp/etc.hash
+.B mount -o verity.hashdevice=/tmp/etc.hash,verity.roothash=<hash> /tmp/etc.squashfs /mnt
+.fi
+.RE
+.sp
+create squashfs image from /etc directory, verity hash device
+and mount verified filesystem image to /mnt.
 
 .SH "LOOP-DEVICE SUPPORT"
 One further possible type is a mount via the loop device.  For example,