Skip to content

Commit 9f28d93

Browse files
authoredMar 22, 2025··
feat: initial commit for erofs support (#25)
* feat: initial commit for erofs support Before this commit, only squashfs was supported. However, there are other filesystems such as erofs that fit the same theme, and additional filesystem support requires refactoring and exposing a more generic filesystem interface. pkg/fs/fs.go - Filesystem interface pkg/squashfs - squashfs pkg/erofs - erofs pkg/common - filesystem-agnostic common routines pkg/verity - verity routines Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com> * fix: disable "advanced/incompatible" features for now Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com> * fix!: drop the double invalid '+' in layer media-type BREAKING-CHANGE: the layer media-type no longer contains "+verity" For a layer media-type, we add the fstype+compression+verity_present. Only one '+' is allowed as per following RFC. https://datatracker.ietf.org/doc/html/rfc6838#section-4.2 Instead just rely on "root_hash" annotation. Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com> * test: add a stacker.yaml for tests * fix: rebasing after Mike's changes Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> * fix: some more refactoring * fix: remove notify support from erofs * fix: try a released stacker version Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> --------- Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com> Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com>
1 parent fb656de commit 9f28d93

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1808
-595
lines changed
 

‎.github/workflows/build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
sudo apt-get update
2121
sudo apt-get install bats fuse3 make libcryptsetup-dev libgpgme-dev \
2222
libcap-dev lxc libdevmapper-dev libacl1-dev libarchive-tools \
23-
squashfuse squashfs-tools
23+
squashfuse squashfs-tools erofs-utils
2424
- name: setup lxc
2525
run: |
2626
chmod ugo+x $HOME

‎Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ VERSION_LDFLAGS=-X main.Version=$(MAIN_VERSION)
1212
BATS = $(TOOLS_D)/bin/bats
1313
BATS_VERSION := v1.10.0
1414
STACKER = $(TOOLS_D)/bin/stacker
15-
STACKER_VERSION := v1.0.0
15+
STACKER_VERSION := v1.1.0-erofs
1616
TOOLS_D := $(ROOT)/tools
1717
GOCOVERDIR ?= $(ROOT)
1818

@@ -36,7 +36,7 @@ gotest: $(GO_SRC)
3636

3737
$(STACKER):
3838
mkdir -p $(TOOLS_D)/bin
39-
wget --progress=dot:giga https://github.com/project-stacker/stacker/releases/download/$(STACKER_VERSION)/stacker
39+
wget --progress=dot:giga https://github.com/rchincha/stacker/releases/download/$(STACKER_VERSION)/stacker
4040
chmod +x stacker
4141
cp stacker $(TOOLS_D)/bin/
4242

0 commit comments

Comments
 (0)
Please sign in to comment.