Skip to content

Conversation

@bmwiedemann
Copy link
Contributor

Make tar creation deterministic
for that, we sort entries, override owner+group+mtime and omit ctime+atime

See https://reproducible-builds.org/ for why this is good.

(cherry picked from commit d9873c8)

for that, we sort entries, override owner+group+mtime
and omit ctime+atime

(cherry picked from commit d9873c8)
@bmwiedemann bmwiedemann requested a review from a team as a code owner November 17, 2025 06:32
@frelon
Copy link
Contributor

frelon commented Nov 17, 2025

Looks good to me, you probably also need to cherry-pick 7116985 to make the CI pass 👍

@bmwiedemann
Copy link
Contributor Author

done. There are still 5 failing tests. Do you know if these have other reasons?

@frelon frelon changed the title Make tar creation deterministic [BACKPORT v2.2.x] Make tar creation deterministic Nov 25, 2025
When building a disk image we do not specify the snapshotter, which
configures the expansion mechanism to set COS_STATE partition filesystem
to ext4.

The green flavor uses the btrfs snapshotter, which means when it boots
and tries to mount the COS_STATE partition it expects a btrfs
filesystem, but finds an ext4 one, which errors.

In this commit we add the --snapshotter.type flag to the build-disk
command and set the snapshotter in the Makefile accordingly.

Signed-off-by: Fredrik Lönnegren <[email protected]>
@frelon
Copy link
Contributor

frelon commented Nov 27, 2025

Excuse my tardiness, I had some problems testing this on my machine with the latest tumbleweed, but seems to be resolved now.

I also cherry-picked 1c06cb4 to this branch, hopefully that's the last backport needed for green tests! 🤞

@frelon frelon merged commit c739b59 into rancher:v2.2.x Nov 27, 2025
28 checks passed
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

Successfully merging this pull request may close these issues.

2 participants