From 62dc77f3a23a24362695f0bd2e10b0a82d97c5c6 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 5 Dec 2019 15:32:23 +0100 Subject: [PATCH] mount: add verity example to man page Signed-off-by: Karel Zak --- sys-utils/mount.8 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sys-utils/mount.8 b/sys-utils/mount.8 index 5ab776c07..5965eaac0 100644 --- a/sys-utils/mount.8 +++ b/sys-utils/mount.8 @@ -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= /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,