From: Zbigniew Jędrzejewski-Szmek Date: Sat, 31 Jul 2021 07:16:52 +0000 (+0200) Subject: man: describe veritysetup command syntax X-Git-Tag: v247.9~2 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=f5cef8e0278d16dcb2b8a8537fcfca990f069134;p=systemd%2F.git man: describe veritysetup command syntax It makes it easier to diagnose what the generated units actually do. (cherry picked from commit d53285d551d883bb9f097eca0942e8c585e33470) (cherry picked from commit 3cd5be0e2952548aea9b1cda7985e5bc1b65f4e2) (cherry picked from commit 4c02e269003adbf364dd21d9806c178147bc16367) --- diff --git a/man/systemd-veritysetup@.service.xml b/man/systemd-veritysetup@.service.xml index c9554b087a..70f08374e2 100644 --- a/man/systemd-veritysetup@.service.xml +++ b/man/systemd-veritysetup@.service.xml @@ -36,6 +36,53 @@ At early boot and when the system manager configuration is reloaded kernel command line configuration for integrity protected block devices is translated into systemd-veritysetup@.service units by systemd-veritysetup-generator8. + + systemd-veritysetup@.service calls systemd-veritysetup. + + + + Commands + + The following commands are understood by systemd-veritysetup: + + + + + + volume + datadevice + hashdevice + roothash + [option...] + + + Create a block device volume using + datadevice and hashdevice as the backing + devices. roothash forms the root of the tree of hashes stored on + hashdevice. See + + Kernel dm-verity documentation for details. + + + + + + + volume + + + Detach (destroy) the block device + volume. + + + + + + + + Print short information about command syntax. + + diff --git a/src/veritysetup/veritysetup.c b/src/veritysetup/veritysetup.c index 42baeceb25..50dbd8c8bc 100644 --- a/src/veritysetup/veritysetup.c +++ b/src/veritysetup/veritysetup.c @@ -33,7 +33,7 @@ static int help(void) { printf("%s attach VOLUME DATADEVICE HASHDEVICE ROOTHASH [ROOTHASHSIG]\n" "%s detach VOLUME\n\n" - "Attaches or detaches an integrity protected block device.\n" + "Attach or detach an integrity protected block device.\n" "\nSee the %s for details.\n" , program_invocation_short_name , program_invocation_short_name