squashfsTools: apply reproducibility patches #40175
Merged
+409
−0
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.
Motivation for this change
Currently, the output of
mksquashfs
is not reproducible. With these patches it is. See #40144 for the full details.Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)I tested this change using the reproduction steps from #40144. With this change, the squashfs image is reproducible without the override workaround.
This does affect the NixOS iso and netboot images, which depend on
squashfsTools
. Could there be any issues there? From the diffs of my own image, there were only a few bytes that differed in the non-reproducible version, but I haven’t diffed the reproducible version against one of the non-reproducible ones.The contributing guidelines say to also set the
maintainers
field. I can volunteer to be a maintainer, but I’ve only used Nix seriously in the past 48 hours and I am not an expert onsquashfs
either, so if a more qualified person would like to be a maintainer please speak up.