Revert "nixos/luksroot: Check whether the device already exists"

This reverts commit 9cd4ce98bf.

This might be broken for some people: https://github.com/NixOS/nixpkgs/pull/50281#issuecomment-443516289
This commit is contained in:
Jörg Thalheim 2018-12-02 17:27:35 +00:00
parent 9e8f6176e5
commit 50071c4475
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA

View File

@ -118,11 +118,6 @@ let
do_open_passphrase() {
local passphrase
# Return if already unlocked
if ! cryptsetup status "${name}" > /dev/null; then
return
fi
while true; do
echo -n "Passphrase for ${device}: "
passphrase=