Skip to content

nix-store: fsync generated key files#15107

Merged
edolstra merged 1 commit intoNixOS:masterfrom
bouk:fsync-key-generation
Feb 2, 2026
Merged

nix-store: fsync generated key files#15107
edolstra merged 1 commit intoNixOS:masterfrom
bouk:fsync-key-generation

Conversation

@bouk
Copy link
Member

@bouk bouk commented Jan 28, 2026

Motivation

Key files can be corrupted because they weren't getting fsynced.

This at least improves the situation but I don't think it's perfect, suggestions welcome.

I also removed the umask because now we're passing the flags directly

Context

Fixes #15106


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@bouk bouk requested a review from edolstra as a code owner January 28, 2026 11:00
@github-actions github-actions bot added the new-cli Relating to the "nix" command label Jan 28, 2026
@edolstra edolstra added this pull request to the merge queue Feb 2, 2026
Merged via the queue into NixOS:master with commit d5ce1a7 Feb 2, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-cli Relating to the "nix" command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nix-store --generate-binary-cache-key can create corrupt files

2 participants