Skip to content

dm-verity: add instructions for systemd x86-64

Paul Gortmaker yocto 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4dm-verity: ensure people don't ignore the DISTRO_FEATURES warningdocs/dm-verity.txt+2 -00 replies
2/4dm-verity: don't make read-only-rootfs sound like a requirementdocs/dm-verity.txt+9 -21 reply
3/4dm-verity: document the meta-intel dependency in the systemd examplewic/systemd-bootdisk-dmverity.wks.in+1 -00 replies
4/4dm-verity: add x86-64 systemd based example instructionsdocs/dm-verity-systemd-x86-64.txt+77 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [meta-security][PATCH 0/4] dm-verity: add instructions for systemd x86-64

From: Paul Gortmaker <[email protected]>

This second series continues in the same general theme of making it easier to use dm-verity within the Yocto/OE framework by adding a worked example that can boot on x86-64 in QEMU and on physical hardware.

A couple small clarifications to exisitng files are also added.

Based on my reading, I believe there are still two things that would be nice to support if time permits. They are somewhat intertwined.

Firstly, the dm-verity basically has two places to store the hash data - at the end of the filesystem data in an "oversized" partition, or in a completely separate partition/device. Our current support is hardwired to the append single partition support.

Secondly, we currently call veritysetup from within the initramfs with all the parameters (hash size, location etc.) - which was sensible for a sysV init based system. However my reading seems to indicate that recent systemd supports direct enablement of dm-verity device(s) from either boot arguments or autodetection via GPT UUIDs assigned to dm-verity (and dm-verity-hash). Meaning (in theory) we should not need to be manually calling veritysetup in a systemd initramfs at all.

So we'll see how that goes. Might lead to another wks.in example?
---

Paul Gortmaker (4):
dm-verity: ensure people don't ignore the DISTRO_FEATURES warning
dm-verity: don't make read-only-rootfs sound like a requirement
dm-verity: document the meta-intel dependency in the systemd example
dm-verity: add x86-64 systemd based example instructions

 docs/dm-verity-systemd-x86-64.txt    | 77 ++++++++++++++++++++++++++++
 docs/dm-verity.txt                   | 13 ++++-
 wic/systemd-bootdisk-dmverity.wks.in |  1 +
 3 files changed, 89 insertions(+), 2 deletions(-)
 create mode 100644 docs/dm-verity-systemd-x86-64.txt
Signature · 1 line
2.40.0