Mika Logan
Mika Logan
@ElvishJerricco I have an alternative patch that I think might work where we can instead just make sure that the initrd closure is always the real NixOS one so it...
```diff diff --git a/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py b/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py index ad7e2184d2a..2d71098c21b 100755 --- a/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py +++ b/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py @@ -85,18 +85,18 @@ def copy_from_profile(profile: Optional[str], generation: int, specialisation: O return efi_file_path -def describe_generation(generation_dir: str) -> str:...
Note: the danger of this is that when rolling back, if the activation of the rollback fails then it will not roll back your boot entry
I think one of the newer deployment tools with support for something similar to magic rollback used UNIX sockets for confirmation, maybe that might be the better way to go...
I would think of this as mildly out of scope (and something that you can solve at the network level with things like Tailscale), but this would help reduce the...
It should be in seconds iirc, but this should be made more clear and documented
To make it more discoverable, these both fix it upstream: https://github.com/NixOS/nixpkgs/pull/209829 https://github.com/NixOS/nixpkgs/pull/210505 - extra investigation into other bootloader builders might also be a good idea. imo regardless of upstream fixes...
~~this is intentionally modeled after my own behavior during deployments~~ It wasn't much of an issue initially, but there definitely needs to be a way to do this, I've had...
I like to run just `deploy` personally, I think others may feel the same - maybe it would make sense to have this configurable from the flake too? Not sure...
here's a simplified repro. stay in school kids, dont do drugs, read manuals, etc `nix build .#nixosConfigurations.test.config.system.build.toplevel` ```nix { description = "Deploy bug with shell script in extraFiles"; inputs =...