Skip to content
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

Fix building images when non-binary reproducible builds are present #625

Merged
merged 6 commits into from
May 7, 2024

Conversation

Mic92
Copy link
Member

@Mic92 Mic92 commented May 6, 2024

Closure-info has one flaw, it's possible that this file contains stale
information when build are not reproducible and the local checksum
doesn't match what the remote build created.
The work-around here is that we disregard the hashes and re-compute with
what nar's we actually have locally instead.

Mic92 added 2 commits April 29, 2024 17:41
closure-info has one flaw, it's possible that this file contains stale
information when build are not reproducible and the local checksum
doesn't match what the remote build created.
The work-around here is that we disregard the hashes and re-compute with
what nar's we actually have locally instead.
lib/make-disk-image.nix Outdated Show resolved Hide resolved
@Mic92 Mic92 force-pushed the image-fixes branch 2 times, most recently from 8f7a550 to eac9cdb Compare May 6, 2024 18:46
This hopefully fixes the large memory consumption we have seen in the
past. Also presumably coreutils cp is more tuned for performance than
whatever nix does.
@brianmcgillion
Copy link

Verified by dropping this patch against Ghaf. The patch was created because of an apparent mem leak in nix copy during image building.

With this change applied, the Image builds successfully again without the large memSize requirements. Thanks!

@Lassulus Lassulus merged commit 4677f6c into master May 7, 2024
40 checks passed
@Lassulus Lassulus deleted the image-fixes branch May 7, 2024 08:26
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.

3 participants