-
Notifications
You must be signed in to change notification settings - Fork 159
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 compressed rootfs support #1403
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The cmdline switch, --squashfs-only, now sets this and the new --rootfs-type can be used to select other rootfs types. Currently only squashfs and squashfs-ext4 are actually implemented. This also changes the default to a plain squashfs without the wrapped ext4 image. This speeds up image creation and there is no longer a reason to use the wrapped ext4 method.
Pull Request Test Coverage Report for Build 9718884846Details
💛 - Coveralls |
3 tasks
3 tasks
This requires this dracut PR - dracut-ng/dracut-ng#490 |
Passing 'erofs' will create a plain erofs compressed image. Passing 'erofs-ext4' will create a LiveOS/rootfs.img ext4 filesystem compressed by erofs.
Pull Request Test Coverage Report for Build 9942739515Details
💛 - Coveralls |
Set the default compression style to lzma and use the config values when creating the erofs compressed rootfs.
Merged to master. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds support for creating the rootfs using the erofs compression format. https://erofs.docs.kernel.org/en/latest/quickstart.html
You can run it by checking out this branch from github (into /root/lorax in this example) and running:
There will be a boot.iso and an install.img in /var/tmp/lorax-fedora-iso/images/
The resulting boot.iso will boot and mount the erofs filesystem, but the overlay doesn't appear to work so it is read only. Dracut still needs some work to fully support this, but this should be a good starting point.