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:
parent
9e8f6176e5
commit
50071c4475
@ -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=
|
||||
|
Loading…
Reference in New Issue
Block a user