eve-core: enable EROFS + DM_VERITY for split-rootfs - #248
Conversation
Add CONFIG_EROFS_FS=y, CONFIG_EROFS_FS_ZIP=y (LZ4 decompression for the lz4hc-compressed Extension image) and CONFIG_DM_VERITY=y so extsloader can veritysetup-open and mount the split-rootfs Extension. Device-mapper base (CONFIG_MD, CONFIG_BLK_DEV_DM) and CRYPTO_SHA256 were already present. Signed-off-by: eriknordmark <erik@zededa.com> Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
@eriknordmark we need to enable erofs differ may use fater LZMA compression that is not too heavy on CPU |
|
One thing to decide with them: |
The split-rootfs feature delivers EVE's non-critical services in a separate
Extension image — an EROFS filesystem, dm-verity protected — that
extsloaderopens withveritysetupand mounts read-only at/persist/exts.The stock
eve-core_defconfigenables neither EROFS nor dm-verity, so on astock-kernel build the Extension cannot mount; an OTA to a split image then
fails the extension-readiness check and the device rolls back to the previous
image.
This enables the three options the feature needs in
arch/x86/configs/eve-core_defconfig:CONFIG_EROFS_FSandCONFIG_EROFS_FS_ZIP— the Extension is builtlz4hc-compressed (
mkfs.erofs -zlz4hc), so the ZIP/decompression support isrequired to mount it.
CONFIG_DM_VERITY— the device-mapper base (CONFIG_MD,CONFIG_BLK_DEV_DM)and SHA-256 were already present.
Validated end-to-end on amd64/QEMU: with this kernel,
extsloaderreachesready, the verity device opens and the EROFS extension mounts, and an OTA froman old (300 MB-partition) image to the split/universal image passes the
extension-readiness gate instead of rolling back.
amd64 (
eve-core_defconfig) only; the arm64 equivalent is a follow-up.Opening as draft alongside the in-progress split-rootfs EVE work.
🤖 Generated with Claude Code