From: Karel Zak Date: Thu, 5 Dec 2019 14:32:23 +0000 (+0100) Subject: mount: add verity example to man page X-Git-Tag: v2.35-rc1~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=62dc77f3a23a24362695f0bd2e10b0a82d97c5c6;p=thirdparty%2Futil-linux.git mount: add verity example to man page Signed-off-by: Karel Zak --- diff --git a/sys-utils/mount.8 b/sys-utils/mount.8 index 5ab776c076..5965eaac0b 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,