diff options
Diffstat (limited to 'docs/dm-verity.txt')
| -rw-r--r-- | docs/dm-verity.txt | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/docs/dm-verity.txt b/docs/dm-verity.txt index ce18395..c2dce73 100644 --- a/docs/dm-verity.txt +++ b/docs/dm-verity.txt | |||
| @@ -53,11 +53,18 @@ conf/local.conf and conf/bblayers.conf from the oe-init-build-env | |||
| 53 | Firstly, you need the meta-security layer to conf/bblayers.conf along with | 53 | Firstly, you need the meta-security layer to conf/bblayers.conf along with |
| 54 | the dependencies it has -- see the top level meta-security README for that. | 54 | the dependencies it has -- see the top level meta-security README for that. |
| 55 | 55 | ||
| 56 | Next, assuming you'll be using dm-verity for validation of your rootfs, | 56 | Note that if you are using dm-verity for your rootfs, then it enforces a |
| 57 | you'll need to enable read-only rootfs support in your local.conf with: | 57 | read-only mount right at the kernel level, so be prepared for issues such |
| 58 | as failed creation of temporary files and similar. | ||
| 59 | |||
| 60 | Yocto does support additional checks and changes via setting: | ||
| 58 | 61 | ||
| 59 | EXTRA_IMAGE_FEATURES = "read-only-rootfs" | 62 | EXTRA_IMAGE_FEATURES = "read-only-rootfs" |
| 60 | 63 | ||
| 64 | ...but since read-only is enforced at the kernel level already, using | ||
| 65 | this feature isn't a hard requirement. It may be best to delay/defer | ||
| 66 | making use of this until after you've established basic booting. | ||
| 67 | |||
| 61 | For more details, see the associated documentation: | 68 | For more details, see the associated documentation: |
| 62 | 69 | ||
| 63 | https://docs.yoctoproject.org/dev/dev-manual/read-only-rootfs.html | 70 | https://docs.yoctoproject.org/dev/dev-manual/read-only-rootfs.html |
