Skip to content

[FEATURE] Add support for EROFS #122

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

Merged
merged 4 commits into from
Mar 27, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ jobs:
curl \
jq \
squashfs-tools \
xz-utils
xz-utils \
erofs-utils

- name: list
id: list
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ If you want to build yourself, the following packages are required:

- `curl`
- `docker`
- `erofs-utils`
- `git`
- `jq`
- `squashfs-tools`
Expand Down
7 changes: 5 additions & 2 deletions lib/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ function _check_format() {
local fmt="$1"

case "$fmt" in
squashfs|btrfs|ext4|ext2)
squashfs|btrfs|ext4|ext2|erofs)
return 0;;
esac

echo "ERROR: unsupported sysext file system format '$fmt'."
echo "Supported file system formats are: squashfs, btrfs, ext4, or ext2."
echo "Supported file system formats are: squashfs, btrfs, ext4, ext2, or erofs."

exit 1
}
Expand Down Expand Up @@ -117,6 +117,9 @@ function _generate_sysext() {
squashfs)
mksquashfs "${basedir}" "${fname}" -all-root -noappend -xattrs-exclude '^btrfs.'
;;
erofs)
mkfs.erofs "${fname}" "${basedir}"
;;

esac
sha256sum "${fname}" > "SHA256SUMS.${extname}"
Expand Down