Commit 31a1b3b
committed
Skip nixos-rebuild re-exec when running from bundled flake
nixos-rebuild's re-exec mechanism builds
$flake#nixosConfigurations.$host.config.system.build.nixos-rebuild before
switching. When BLOUD_FLAKE_PATH points to the bundled store path, this
evaluates to the bloud-host-agent package (not nixos-rebuild), causing
exec to fail with no such binary.
Setting _NIXOS_REBUILD_REEXEC=1 bypasses this step so the already-running
nixos-rebuild binary is used directly.1 parent 91e763a commit 31a1b3b
File tree
3 files changed
+10
-1
lines changed- screenshots
- services/host-agent/internal/nixgen
3 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
77 | 85 | | |
78 | 86 | | |
79 | 87 | | |
| |||
241 | 249 | | |
242 | 250 | | |
243 | 251 | | |
| 252 | + | |
244 | 253 | | |
245 | 254 | | |
246 | 255 | | |
| |||
0 commit comments