mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-23 09:00:51 +00:00
nixos/luksroot: Exit if EOF detected in cryptsetup-askpass (#298592)
This commit is contained in:
@@ -502,7 +502,11 @@ let
|
||||
|
||||
echo -n "Passphrase for $device: "
|
||||
IFS= read -rs passphrase
|
||||
ret=$?
|
||||
echo
|
||||
if [ $ret -ne 0 ]; then
|
||||
die "End of file reached. Exiting shell."
|
||||
fi
|
||||
|
||||
rm /crypt-ramfs/device
|
||||
echo -n "$passphrase" > /crypt-ramfs/passphrase
|
||||
|
||||
Reference in New Issue
Block a user