add syncs to avoid fs issues

This commit is contained in:
Tobias Powalowski 2024-07-12 09:53:08 +02:00
parent 12c06d228c
commit 68b89ad773

View file

@ -133,6 +133,7 @@ echo "Stop error: lvm pv" >> blockdevices-error.log
echo "12345678" >/passphrase
cryptsetup -q luksFormat /dev/loop0 </passphrase &>"${_NO_LOG}" ||\
echo "Creation error: cryptsetup" >> blockdevices-error.log
sync
cryptsetup luksOpen /dev/loop0 /dev/mapper/testluks </passphrase &>"${_NO_LOG}" ||\
echo "Creation error: cryptsetup open" >> blockdevices-error.log
cryptsetup remove /dev/mapper/testluks &>"${_NO_LOG}" ||\