Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add erofs bootfs support #20

Open
ericcurtin opened this issue Nov 22, 2023 · 0 comments
Open

Add erofs bootfs support #20

ericcurtin opened this issue Nov 22, 2023 · 0 comments

Comments

@ericcurtin
Copy link
Collaborator

In Fedora/CentOS Stream 9, /boot will be vfat or ext4 (there is talk of unifying /boot/efi and /boot into one partition in Fedora, a vfat one, vfat is mandatory for firmware as all UEFI firmwares implement this fs). But in an Android Boot environment at least, among others, erofs is also an option for the boot partition (which will probably be implemented in system_b label, with system_a label being rootfs).

Performing some simple benchmarks;

Mount speed:

  1. vfat/erofs (very close, pretty much equal)
  2. ext4

Read speed:

  1. ext4
  2. erofs
  3. vfat

Mount speed is of utmost important for a quick boot. So read speed is the next decisive factor. Given that erofs has more potential to improve than vfat, in performance driven environments like an Android Bootloader based automotive environment, erofs makes sense for a boot partition. vfat also has a 4GB file limit, which can be limiting if you want to use that partition to store large files of some sort.

@ericcurtin ericcurtin changed the title This might just work, but it needs to be tested. In Fedora there is talk about /boot and /boot/efi partitions being merged as a single vfat /boot partition, so lets be prepared for that. Up to now /boot had been an ext4 partition. Add erofs bootfs support Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant