Revert "nixos/luksroot: Check whether the device already exists"
This reverts commit 9cd4ce98bfc11292fbebc6b85d14bb386e82c9a8. 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() {
|
do_open_passphrase() {
|
||||||
local passphrase
|
local passphrase
|
||||||
|
|
||||||
# Return if already unlocked
|
|
||||||
if ! cryptsetup status "${name}" > /dev/null; then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
echo -n "Passphrase for ${device}: "
|
echo -n "Passphrase for ${device}: "
|
||||||
passphrase=
|
passphrase=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user