Skip to content

image_format: Record erofs inode digests - #310

Merged
martinpitt merged 1 commit into
amutable-systems:mainfrom
daandemeyer:push-opmsqnvyqrwp
Oct 15, 2026
Merged

martinpitt merged 1 commit into
amutable-systems:mainfrom
daandemeyer:push-opmsqnvyqrwp

Conversation

@daandemeyer

Copy link
Copy Markdown
Member

Since v7.0, Linux can share the page cache of identical files between erofs
images mounted with inode_share and domain_id. It only does so for images that
record a digest of each file, and our erofs images don't. Let's pass
--xattr-inode-digest to mkfs.erofs for extensions and the secure boot example.

Signed-off-by: Daan De Meyer [email protected]

@martinpitt martinpitt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, that's cool! For shared base layers of sysexts and such? Will need the "update-reproducibility" label dance once CI is finished. Not sure if you ever used it before, LMK if there are problems.

@daandemeyer daandemeyer added the update-reproducibility accept new image digests label Oct 15, 2026
@martinpitt

Copy link
Copy Markdown
Member

@daandemeyer ah sorry, the update-reproducibility workflow can't work on forks. Grab the updated sums from https://github.com/amutable-systems/tine/actions/runs/38701401848?pr=310 or re-push from origin. You already force-pushed the x86 ones yourself earlier.

Since v7.0, Linux can share the page cache of identical files between erofs
images mounted with inode_share and domain_id. It only does so for images that
record a digest of each file, and our erofs images don't. Let's pass
--xattr-inode-digest to mkfs.erofs for every erofs partition we build, in disks
and extensions alike, unless the caller already picked a digest name.

Signed-off-by: Daan De Meyer <[email protected]>
@martinpitt
martinpitt merged commit 5d095cc into amutable-systems:main Oct 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

update-reproducibility accept new image digests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants