diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-07-17 13:25:34 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-07-17 15:03:13 +0300 |
commit | 193ab8be67ef941321e6b079db7e73b1d04cf9a8 (patch) | |
tree | 79b0c165c61809de36931c9c686cbc3ebaffb385 /nixos/modules/system/boot/luksroot.nix | |
parent | 6dc6ae0ebe500d45b1ef7a3bac85aad2ef2820ab (diff) | |
download | nixpkgs-193ab8be67ef941321e6b079db7e73b1d04cf9a8.tar nixpkgs-193ab8be67ef941321e6b079db7e73b1d04cf9a8.tar.gz nixpkgs-193ab8be67ef941321e6b079db7e73b1d04cf9a8.tar.bz2 nixpkgs-193ab8be67ef941321e6b079db7e73b1d04cf9a8.tar.lz nixpkgs-193ab8be67ef941321e6b079db7e73b1d04cf9a8.tar.xz nixpkgs-193ab8be67ef941321e6b079db7e73b1d04cf9a8.tar.zst nixpkgs-193ab8be67ef941321e6b079db7e73b1d04cf9a8.zip |
Revert "nixos stage-1: try to quit plymouth if started on failure"
This reverts commit c69c76ca7efecba24aba555c2a03f933997d1fd5. This patch was messed up during a rebase -- the commit title doesn't match what it really does at all (it is actually a broken attempt to get LUKS passphrase prompts in Plymouth).
Diffstat (limited to 'nixos/modules/system/boot/luksroot.nix')
-rw-r--r-- | nixos/modules/system/boot/luksroot.nix | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/nixos/modules/system/boot/luksroot.nix b/nixos/modules/system/boot/luksroot.nix index 15881b6d371..8dad09c8920 100644 --- a/nixos/modules/system/boot/luksroot.nix +++ b/nixos/modules/system/boot/luksroot.nix @@ -36,7 +36,7 @@ let ${optionalString (header != null) "--header=${header}"} \ ${optionalString (keyFile != null) "--key-file=${keyFile} ${optionalString (keyFileSize != null) "--keyfile-size=${toString keyFileSize}"}"} \ > /.luksopen_args - get_password "Enter LUKS Passphrase" cryptsetup-askpass + cryptsetup-askpass rm /.luksopen_args } @@ -78,7 +78,9 @@ let for try in $(seq 3); do ${optionalString yubikey.twoFactor '' - k_user="$(get_password "Enter two-factor passphrase" cat)" + echo -n "Enter two-factor passphrase: " + read -s k_user + echo ''} if [ ! -z "$k_user" ]; then @@ -461,26 +463,6 @@ in ''} ''; - boot.initrd.preDeviceCommands = '' - get_password() { - local ret - local reply - local tty_stat - - tty_stat="$(stty -g)" - stty -echo - for i in `seq 1 3`; do - echo -n "$1: " - read reply - echo "$reply" | "$2" - if [ "$?" = "0" ]; then - break - fi - done - stty "$tty_stat" - } - ''; - boot.initrd.preLVMCommands = concatStrings (mapAttrsToList openCommand preLVM); boot.initrd.postDeviceCommands = concatStrings (mapAttrsToList openCommand postLVM); |