mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-13 11:50:10 +01:00
tests: move luks1 decryption resume test.
It cannot be run in fips mode due to empty passphrase is no longer allowed.
This commit is contained in:
committed by
Milan Broz
parent
ba7973236b
commit
0645219c9d
@@ -493,7 +493,6 @@ if [ "$HAVE_BLKID" -gt 0 ]; then
|
|||||||
echo $PWD1 | $REENC --header $IMG_HDR $HEADER_LUKS2_PV -q $FAST_PBKDF --new --type luks1 2>/dev/null && fail
|
echo $PWD1 | $REENC --header $IMG_HDR $HEADER_LUKS2_PV -q $FAST_PBKDF --new --type luks1 2>/dev/null && fail
|
||||||
test -f $IMG_HDR && fail
|
test -f $IMG_HDR && fail
|
||||||
fi
|
fi
|
||||||
fi # if ! fips_mode
|
|
||||||
|
|
||||||
# Only test if the LUKS1 decryption can be resumed with provided --uuid
|
# Only test if the LUKS1 decryption can be resumed with provided --uuid
|
||||||
echo "[14] Resume LUKS1 decryption"
|
echo "[14] Resume LUKS1 decryption"
|
||||||
@@ -503,6 +502,7 @@ echo $PWD1 | $REENC $LOOPDEV1 -q --decrypt --uuid $LUKS1_DECRYPT_UUID >/dev/null
|
|||||||
test -f $LUKS1_DECRYPT.org && fail
|
test -f $LUKS1_DECRYPT.org && fail
|
||||||
test -f $LUKS1_DECRYPT.new && fail
|
test -f $LUKS1_DECRYPT.new && fail
|
||||||
test -f $LUKS1_DECRYPT.log && fail
|
test -f $LUKS1_DECRYPT.log && fail
|
||||||
|
fi # if ! fips_mode
|
||||||
|
|
||||||
remove_mapping
|
remove_mapping
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user