You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests: enable systemd-tpm2 test to run with default system path.
If run in Makefile.localtest there was unset CRYPTSETUP_TOKENS_PATH.
It's valid test case to run with systemd-tpm2 plugin installed on
the system (integration tests).
$CRYPTSETUP luksDump --external-tokens-path $CRYPTSETUP_TOKENS_PATH$IMG| grep -q "tpm2-blob"|| fail "Failed to dump $IMG using systemd_tpm2 token (no tpm2-blob in output)."
183
+
$CRYPTSETUP luksDump $CRYPTSETUP_EXTERNAL_PATH_PARAM$IMG| grep -q "tpm2-blob"|| fail "Failed to dump $IMG using systemd_tpm2 token (no tpm2-blob in output)."
177
184
echo"Activating the device via TPM2 external token.."
178
-
$CRYPTSETUP open --external-tokens-path $CRYPTSETUP_TOKENS_PATH --token-only $IMG$MAP>/dev/null 2>&1|| fail "Failed to open $IMG using systemd_tpm2 token."
185
+
$CRYPTSETUP open $CRYPTSETUP_EXTERNAL_PATH_PARAM --token-only $IMG$MAP>/dev/null 2>&1|| fail "Failed to open $IMG using systemd_tpm2 token."
179
186
$CRYPTSETUP close $MAP>/dev/null 2>&1|| fail "Failed to close $MAP."
180
187
181
188
echo"Adding passphrase via TPM2 token.."
182
-
echo$PASSWD2|$CRYPTSETUP luksAddKey --external-tokens-path $CRYPTSETUP_TOKENS_PATH$FAST_PBKDF_OPT$IMG --force-password -q --token-only >/dev/null 2>&1|| fail "Failed to add passphrase by tpm2 token."
189
+
echo$PASSWD2|$CRYPTSETUP luksAddKey $CRYPTSETUP_EXTERNAL_PATH_PARAM$FAST_PBKDF_OPT$IMG --force-password -q --token-only >/dev/null 2>&1|| fail "Failed to add passphrase by tpm2 token."
183
190
echo$PASSWD2|$CRYPTSETUP open $IMG --test-passphrase --disable-external-tokens >/dev/null 2>&1|| fail "Failed to test passphrase added by tpm2 token."
$CRYPTSETUP open --external-tokens-path $CRYPTSETUP_TOKENS_PATH$IMG --test-passphrase --token-only >/dev/null 2>&1&& fail "Activating without passphrase should fail after TPM2 token removal."
195
+
$CRYPTSETUP open $CRYPTSETUP_EXTERNAL_PATH_PARAM$IMG --test-passphrase --token-only >/dev/null 2>&1&& fail "Activating without passphrase should fail after TPM2 token removal."
$CRYPTSETUP open --external-tokens-path $CRYPTSETUP_TOKENS_PATH$IMG --test-passphrase --token-only >/dev/null 2>&1|| fail "Failed to activate after re-importing deleted token."
199
+
$CRYPTSETUP open $CRYPTSETUP_EXTERNAL_PATH_PARAM$IMG --test-passphrase --token-only >/dev/null 2>&1|| fail "Failed to activate after re-importing deleted token."
0 commit comments