nixos/system/boot/luksroot.nix: cryptsetup-askpass never exits #413165
Labels
0.kind: bug
Something is broken
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Uh oh!
There was an error while loading. Please reload this page.
Nixpkgs version
Describe the bug
Since a few months, this script is not correctly exiting or triggering a state that it did before where you could unlock remotely. The unlock still goes through, but it hangs like this:
I believe this is because of the change that was made that emits "Exiting shell".
Steps to reproduce
Have
boot.initrd.network.ssh
enabled with eithershell = "/bin/cryptsetup-askpass"
or apostCommand
that appends tocryptsetup-askpass
to/root.profile
.Run:
echo -n "<passphrase>" | ssh <host>
- errors out, does not unlock disk, it used toecho "<passphrase>" | ssh <host>
- does unlock disk, but command never exitsExpected behaviour
I would expect the disk to be unlocked with the correct passphrase and the remote command to exit after 10 secs
Screenshots
No response
Relevant log output
Additional context
No response
System metadata
"x86_64-linux"
Linux 6.12.30, NixOS, 25.11 (Xantusia), 25.11.20250528.96ec055
yes
yes
nix-env (Nix) 2.28.3
/nix/store/2q205l7a46885nq31vvji40m30bygzzj-source
Notify maintainers
Not sure where to find maintainers, pinging last 3 committers @hugolgst, @rnhmjoj, @ck3d.
Note for maintainers: Please tag this issue in your pull request description. (i.e.
Resolves #ISSUE
.)I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: