... | ... | @@ -36,7 +36,10 @@ To check which version you have installed, load the dm target module |
|
|
## Mapping table for verity target
|
|
|
The basic syntax is common for all 1.x.y dm-verity target versions.
|
|
|
If some extension was added later, it is mentioned in the description.
|
|
|
`<ver> <data_dev> <hash_dev> <data_blk_size> <hash_blk_size> <#blocks> <hash_start> <alg> <digest> <salt> [<#opt_params> <opt_params>]`
|
|
|
|
|
|
`
|
|
|
<ver> <data_dev> <hash_dev> <data_blk_size> <hash_blk_size> <#blocks> <hash_start> <alg> <digest> <salt> [<#opt_params> <opt_params>]
|
|
|
`
|
|
|
|
|
|
* **ver**: on-disk hash version
|
|
|
* **0** is the original format used in the Chromium OS.
|
... | ... | @@ -133,8 +136,7 @@ Usually this tool is only used for low-level access to dm device, |
|
|
example here is mentioned just to show how the low level parameters works.
|
|
|
Always prefer using veritysetup if possible.
|
|
|
|
|
|
To create device and specify mapping table, use
|
|
|
`dmsetup create <name> --table " ..."` command.
|
|
|
To create device and specify mapping table, use `dmsetup create <name> --table " ..."` command.
|
|
|
|
|
|
The example above is then created using (after hash device was populated with hashes)
|
|
|
```
|
... | ... | |