Solved mounting and testing bugs

This commit is contained in:
2020-12-20 22:39:49 +01:00
parent bf49689723
commit cf9b59677a
2 changed files with 3 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ create_luks_key_and_update_cryptab(){
sudo dd if=/dev/urandom of="$secret_key_path" bs=512 count=8 &&
sudo cryptsetup -v luksAddKey "$2" "$secret_key_path" &&
info "Opening and closing device to verify that that everything works fine..." &&
sudo cryptsetup -v luksClose "$1" &&
sudo cryptsetup -v luksOpen "$2" "$1" --key-file="$secret_key_path" &&
sudo cryptsetup -v luksClose "$1" &&
info "Reading UUID..." &&