nixos/luksroot: Exit if EOF detected in `cryptsetup-askpass` (#298592)

authored by Arne Keller and committed by GitHub e4e994e3 4ff85255

+4
+4
nixos/modules/system/boot/luksroot.nix
··· 502 502 503 503 echo -n "Passphrase for $device: " 504 504 IFS= read -rs passphrase 505 + ret=$? 505 506 echo 507 + if [ $ret -ne 0 ]; then 508 + die "End of file reached. Exiting shell." 509 + fi 506 510 507 511 rm /crypt-ramfs/device 508 512 echo -n "$passphrase" > /crypt-ramfs/passphrase