nixos/luksroot: remove useless $new_k_luks
Remove the variable new_k_luks used only once in the code.
This commit is contained in:
parent
e39c279136
commit
1599c37a6b
@ -408,13 +408,12 @@ let
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z "$k_user" ]; then
|
if [ -n "$k_user" ]; then
|
||||||
new_k_luks="$(echo -n $k_user | pbkdf2-sha512 ${toString dev.yubikey.keyLength} $new_iterations $new_response | rbtohex)"
|
echo -n $k_user
|
||||||
else
|
else
|
||||||
new_k_luks="$(echo | pbkdf2-sha512 ${toString dev.yubikey.keyLength} $new_iterations $new_response | rbtohex)"
|
echo
|
||||||
fi
|
fi | pbkdf2-sha512 ${toString dev.yubikey.keyLength} $new_iterations $new_response > /crypt-ramfs/new_key
|
||||||
|
|
||||||
echo -n "$new_k_luks" | hextorb > /crypt-ramfs/new_key
|
|
||||||
echo -n "$k_luks" | hextorb | ${cschange} --key-file=- /crypt-ramfs/new_key
|
echo -n "$k_luks" | hextorb | ${cschange} --key-file=- /crypt-ramfs/new_key
|
||||||
|
|
||||||
if [ $? == 0 ]; then
|
if [ $? == 0 ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user