Skip to content

Add support for EROFS

Jan Kiszka cip-dev 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 0 repliesNew
  2. v16 patches 1 replySuperseded

Changes in v2 from the cover letter

- update cip-kernel-config revision further to support non-x86 qemu targets

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Make the read-only rootfs type configurableclasses/swupdate.bbclass classes/verity.bbclass conf/distro/cip-core-common.inc +6 more+15 -120 replies
2/6initramfs-crypt-hook: Prepare for EROFS as alternativerecipes-initramfs/initramfs-crypt-hook/files/encrypt_partition.script recipes-initramfs/initramfs-crypt-hook/initramfs-crypt-hook_0.3.bb+1 -10 replies
3/6Add initramfs-erofs-hookrecipes-initramfs/initramfs-erofs-hook/files/erofs.hook recipes-initramfs/initramfs-erofs-hook/initramfs-erofs-hook_0.1.bb+49 -00 replies
4/6Introduce class for generating EROFS imagesclasses/erofs.bbclass conf/layer.conf+35 -10 replies
5/6linux-cip: Update cip-kernel-config revisionrecipes-kernel/linux/cip-kernel-config.inc+1 -10 replies
6/6kas: Add option for selecting read-only rootfs typeKconfig kas/opt/erofs.yml+32 -04 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [isar-cip-core][PATCH v2 0/6] Add support for EROFS

Changes in v2:
- update cip-kernel-config revision further to support non-x86 qemu targets

EROFS is a read-only file system that can act as alternative to squashfs that we so far use for our A/B OTA update setups. It can perform faster during runtime but may come with larger storage demand. See [1] for some comparison.

We just enabled support for it in our 6.1 defconfigs, and this series now enable CIP core to switch from squashfs to EROFS when requested.

Jan

[1] https://sigma-star.at/blog/2022/07/squashfs-erofs

Jan Kiszka (6):
Make the read-only rootfs type configurable
initramfs-crypt-hook: Prepare for EROFS as alternative Add initramfs-erofs-hook
Introduce class for generating EROFS images
linux-cip: Update cip-kernel-config revision
kas: Add option for selecting read-only rootfs type

 Kconfig                                       | 16 +++++++++
 classes/erofs.bbclass                         | 34 +++++++++++++++++++
 classes/swupdate.bbclass                      |  3 +-
 classes/verity.bbclass                        |  2 +-
 conf/distro/cip-core-common.inc               |  4 ++-
 conf/layer.conf                               |  2 +-
 kas/opt/erofs.yml                             | 16 +++++++++
 kas/opt/swupdate.yml                          |  8 ++---
 .../files/encrypt_partition.script            |  2 +-
 ...ook_0.2.bb => initramfs-crypt-hook_0.3.bb} |  0
 .../initramfs-erofs-hook/files/erofs.hook     | 25 ++++++++++++++
 .../initramfs-erofs-hook_0.1.bb               | 24 +++++++++++++
 recipes-kernel/linux/cip-kernel-config.inc    |  2 +-
 wic/bbb-efibootguard.wks.in                   |  2 +-
 wic/hihope-rzg2m-efibootguard.wks.in          |  2 +-
 wic/qemu-arm64-efibootguard.wks.in            |  2 +-
 wic/qemu-riscv64-efibootguard.wks.in          |  2 +-
 wic/x86-uefi-efibootguard.wks.in              |  2 +-
 18 files changed, 133 insertions(+), 15 deletions(-)
 create mode 100644 classes/erofs.bbclass
 create mode 100644 kas/opt/erofs.yml
 rename recipes-initramfs/initramfs-crypt-hook/{initramfs-crypt-hook_0.2.bb => initramfs-crypt-hook_0.3.bb} (100%)
 create mode 100644 recipes-initramfs/initramfs-erofs-hook/files/erofs.hook
 create mode 100644 recipes-initramfs/initramfs-erofs-hook/initramfs-erofs-hook_0.1.bb
Signature · 1 line
2.43.0