r-vdp
9d46e91c49
nixos/systemd-boot-builder: track critical paths separately from BootFile
...
Whether a write failure must be fatal is a property of the destination
path (is it needed by the configuration we are switching to?), not of
the particular BootFile instance that happened to survive
deduplication. Compute the set of critical paths up front and look it
up in write_boot_files, so the dedup loop no longer needs to pick the
"right" instance and becomes a plain order-preserving seen-set walk.
This leaves BootFile.current unused.
Suggested-by: Will Fancher <elvishjerricco@gmail.com >
2026-06-02 12:20:55 +03:00
r-vdp
dff3315fac
nixos/systemd-boot-builder: use with for the secrets temp file
...
This guarantees the descriptor is closed even when copyfileobj raises,
matching the other writer implementations. The append-initrd-secrets
script reopens the file by path, so flush() is enough before invoking
it and the explicit close() is no longer needed.
2026-06-02 12:20:55 +03:00
r-vdp
30552ab00b
nixos/systemd-boot-builder: clarify stale initrd secrets warning
...
Tell the user what actually happens (the old secrets stay in place) and
how to get rid of the warning, instead of just saying it is "normal".
Suggested-by: Will Fancher <elvishjerricco@gmail.com >
2026-06-02 12:20:54 +03:00
r-vdp
b4e756627d
nixos/systemd-boot-builder: write each ESP path only once
...
Shared kernels and initrds appear once per generation in boot_files, so
InitrdWithSecretsWriter rebuilt the same file repeatedly. Prefer the
current configuration's entry so its failures stay fatal.
2026-06-02 12:20:54 +03:00
r-vdp
76673e2736
nixos/systemd-boot-builder: fall back to pristine initrd when secrets fail
...
Otherwise the .conf for that generation references a missing initrd and
the boot entry fails to load.
2026-06-02 12:20:54 +03:00
r-vdp
3ff32972f8
nixos/systemd-boot-builder: verify content of existing entry files
...
A file named nixos-<hash>.conf whose content no longer hashes to <hash>
is corrupt. Skip it so GC removes it and a fresh entry is written.
2026-06-02 12:20:54 +03:00
r-vdp
820d20f8b9
nixos/systemd-boot-builder: cache boot_path()
...
It calls Path.resolve() and is invoked several times per generation for
the same store paths.
2026-06-02 12:20:53 +03:00
r-vdp
85d59c4f3d
nixos/systemd-boot-builder: use a set for GC root lookup
...
has_gc_root() iterated the entire BootFileList for every file on the
ESP, giving O(files * roots) comparisons. Build the set of kept paths
once and use O(1) membership tests instead.
2026-06-02 12:20:53 +03:00
r-vdp
146acf965f
nixos/systemd-boot-builder: warn instead of aborting when an old gen's secrets fail
...
After removing or renaming a file in boot.initrd.secrets, older
generations' append scripts start failing. Aborting on that blocks
deploying the new configuration, so only treat a failure as fatal when
it belongs to the configuration being switched to.
2026-06-02 12:20:53 +03:00
r-vdp
6eba7d60f3
nixos/systemd-boot-builder: rebuild secret-bearing initrds atomically each run
...
Appending to the existing file made it grow on every rebuild and a
failed script could leave it half-written. Always rebuild from the
pristine initrd into a temp file and rename into place.
2026-06-02 12:20:53 +03:00
r-vdp
6ef460ec9d
nixos/systemd-boot-builder: write loader.conf after the entries it points at
...
A crash between the two would leave `default <id>` referring to a
.conf that does not exist yet.
2026-06-02 12:20:53 +03:00
Will Fancher and r-vdp
44a974d0eb
nixos/systemd-boot: Rerun secrets every switch
2026-06-02 12:20:52 +03:00
Will Fancher and r-vdp
1d081050c3
nixos/systemd-boot: Separate finding the placement of files from writing files
2026-06-02 12:20:52 +03:00
r-vdp and AkechiShiro
b4c278c06b
nixos/systemd-boot-builder: store boot loader configs using content hashing
...
Co-Authored-By: AkechiShiro <14914796+AkechiShiro@users.noreply.github.com >
2026-06-02 12:20:51 +03:00
r-vdp
323ef6c123
nixos/tests/systemd-boot: use a valid machine-id
...
dbus-broker (now the default since #512050 ) calls
sd_id128_get_machine() which returns -ENOMEDIUM for an
all-zero machine-id, causing it to crash-loop and the test
to hang on multi-user.target.
2026-06-02 12:20:13 +03:00
69ce6b2391
nixos/systemd-boot-builder: re-instate boot counting
...
Co-Authored-By: Julien Malka <julien@malka.sh >
Co-Authored-By: AkechiShiro <14914796+AkechiShiro@users.noreply.github.com >
2026-06-02 12:20:12 +03:00
r-vdp
ac2410be5d
nixos/systemd-boot-builder: format
2026-06-02 12:20:12 +03:00
Johannes Kirschbauer and GitHub
1a4ff1a661
docs: init styleguide ( #523597 )
2026-06-02 09:19:03 +00:00
Doron Behar and GitHub
6bb4e3444f
monkeys-audio: 12.97 -> 13.01 ( #527031 )
2026-06-02 09:19:00 +00:00
R. Ryantm
2484de99b7
terraform-providers.huaweicloud_huaweicloud: 1.91.0 -> 1.92.0
2026-06-02 09:11:53 +00:00
Vladimír Čunát and GitHub
3e1c1a3be7
ngtcp2-gnutls: 1.22.1 -> 1.23.0 ( #526396 )
2026-06-02 09:02:14 +00:00
nixpkgs-ci[bot] and GitHub
b9c8e44894
bmm: 0.3.0 -> 0.3.1 ( #526861 )
2026-06-02 09:00:28 +00:00
nixpkgs-ci[bot] and GitHub
50ccd4cbb0
shikane: 1.0.1 -> 1.1.0 ( #526563 )
2026-06-02 09:00:17 +00:00
Sizhe Zhao and GitHub
4f6faed600
python3Packages.cuda-tile: init at 1.4.0 ( #526920 )
2026-06-02 08:59:02 +00:00
K900 and GitHub
9ad99deda7
vscode: 1.119.0 -> 1.122.1 ( #525492 )
2026-06-02 08:28:02 +00:00
K900 and GitHub
1f2a077471
Revert "nixos/virtualisation: remove hard-coded virtio-gpu-pci device… ( #527048 )
2026-06-02 08:26:23 +00:00
K900
9d1a8dba42
Revert "nixos/virtualisation: remove hard-coded virtio-gpu-pci device from aarch machines"
...
This reverts commit 44c6c2ef16 .
The change breaks nixosTests.login, blocking channels.
2026-06-02 11:20:17 +03:00
Vincent Laporte and GitHub
5f28af7023
ocamlPackages: remove legacy uses of dune_3 ( #526626 )
2026-06-02 07:50:10 +00:00
isabel and GitHub
9895c86708
biome: 2.4.15 -> 2.4.16 ( #526989 )
2026-06-02 07:35:09 +00:00
Vladimír Čunát and GitHub
017304cea5
xorg-server: 21.1.22 -> 21.1.23 ( #526959 )
2026-06-02 07:33:23 +00:00
R. Ryantm
c16f99a4d5
par-lang: 0-unstable-2026-05-23 -> 0-unstable-2026-06-01
2026-06-02 07:31:09 +00:00
zowoq and GitHub
8ecc96581b
dnscontrol: 4.39.0 -> 4.40.0 ( #527036 )
2026-06-02 07:28:37 +00:00
Stefan Frijters and GitHub
52ca79abe4
tango-icon-theme: enable strictDeps and structuredAttrs, use SRI hash ( #526292 )
2026-06-02 07:28:29 +00:00
Gaétan Lepage and GitHub
b395ca0c5d
python3Packages.databricks-sdk: 0.108.0 -> 0.113.0 ( #526925 )
2026-06-02 07:26:29 +00:00
Sizhe Zhao and Gaetan Lepage
75a2495a8e
python3Packages.cuda-tile: init at 1.4.0
...
Co-authored-by: Gaetan Lepage <gaetan@glepage.com >
2026-06-02 07:20:13 +00:00
R. Ryantm
d3ef05e639
dnscontrol: 4.39.0 -> 4.40.0
2026-06-02 07:16:30 +00:00
Vladimír Čunát and GitHub
a4421cecfb
ios-deploy: fix build ( #524848 )
2026-06-02 06:58:05 +00:00
R. Ryantm
cbf5412484
typos: 1.46.3 -> 1.47.0
2026-06-02 06:56:32 +00:00
R. Ryantm
3026af3f49
monkeys-audio: 12.97 -> 13.01
2026-06-02 06:55:35 +00:00
R. Ryantm
ae6dd33f4c
python3Packages.elevenlabs: 2.49.1 -> 2.50.0
2026-06-02 06:51:22 +00:00
7c6f434c and GitHub
24164cccf7
xcape: unstable-2018-03-01 -> 1.2 ( #523983 )
2026-06-02 06:38:39 +00:00
R. Ryantm
df3d8c05fd
tutanota-desktop: 348.260519.0 -> 348.260529.2
2026-06-02 06:37:09 +00:00
Vladimír Čunát and GitHub
f68f218c5a
recordbox: 0.10.4 -> 0.11.0 ( #522772 )
2026-06-02 06:36:36 +00:00
R. Ryantm
6bb9c87bef
kubelogin-oidc: 1.36.1 -> 1.36.2
2026-06-02 06:29:18 +00:00
Vladimír Čunát and GitHub
8db3262ac5
python3Packages.biopandas: fix numpy 2.4 compatibility ( #521225 )
2026-06-02 06:28:54 +00:00
Vladimír Čunát and GitHub
4d87edc412
rhvoice: 1.16.5 -> 1.18.4 ( #492842 )
2026-06-02 06:23:59 +00:00
R. Ryantm
434fc05cc2
golazo: 0.24.0 -> 0.25.0
2026-06-02 06:15:25 +00:00
R. Ryantm
2f7a6d7ebd
biome: 2.4.15 -> 2.4.16
2026-06-02 06:12:12 +00:00
LIN, Jian and GitHub
81486c7486
emacsPackages.mozc: fix mozc_emacs_helper path ( #526967 )
2026-06-02 05:58:35 +00:00
nixpkgs-ci[bot] and GitHub
e0dc02084c
nushell-plugin-hcl: 0.112.2 -> 0.113.1 ( #526978 )
2026-06-02 05:47:49 +00:00