veritysetup: add support for dm-verity options
authorGaël PORTAY <gael.portay@collabora.com>
Thu, 5 Nov 2020 18:37:43 +0000 (13:37 -0500)
committerGaël PORTAY <gael.portay@collabora.com>
Fri, 15 Jan 2021 00:23:37 +0000 (19:23 -0500)
commitcb0198a13c26fe990ffc9f3e6a471036fdb43d1d
tree015f633972214032d125a0b777d51b9091dd6c80
parente2ebc406ac78cb57612ce5c5d590018572d71df1
veritysetup: add support for dm-verity options

This patch allows controlling the behaviour of dm-verity by reusing the
fifth argument that was used to set the roothash signature.

That argument is now a comma-separated list of dm-verity options in the
given format: option[=value]. The option is the name of the long option
in the world of veritysetup.

See `veritysetup(8)` for more details.

Note: The former ROOTHASHSIG the positional argument is now deprecated
in favour of the option root-hash-signature=(base64:SIG|FILE). However,
the previous format is maintained and a warning is logged.
src/veritysetup/veritysetup.c