nixos/luksroot: sync the crypt-storage
Add a sync command just after writing to the /crypt-storage file in order to reduce the possibilities of corruption errors.
This commit is contained in:
parent
37a9affe1b
commit
e09fb63ffc
1 changed files with 1 additions and 0 deletions
|
@ -332,6 +332,7 @@ let
|
||||||
|
|
||||||
if [ $? == 0 ]; then
|
if [ $? == 0 ]; then
|
||||||
echo -ne "$new_salt\n$new_iterations" > /crypt-storage${dev.yubikey.storage.path}
|
echo -ne "$new_salt\n$new_iterations" > /crypt-storage${dev.yubikey.storage.path}
|
||||||
|
sync /crypt-storage${dev.yubikey.storage.path}
|
||||||
else
|
else
|
||||||
echo "Warning: Could not update LUKS key, current challenge persists!"
|
echo "Warning: Could not update LUKS key, current challenge persists!"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue