mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-28 18:19:23 +00:00
tests: Switch password quality check off for luks2 test
When adding/changing the password for the luks2 partition, cryptsetup may reject the command due to the weak password. Since this is only for testing, add "--force-password" to switch password quality check off to avoid the unexpected failure. Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Glenn Washburn <development@efficientek.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
b835601c76
commit
5a311d029f
1 file changed
+1
-1
@@ -173,7 +173,7 @@ eval testcase_fail "'LUKS2 test with argon2 pbkdf:'" \
|
|||||||
# Add good password to second slot and change first slot to unchecked password
|
# Add good password to second slot and change first slot to unchecked password
|
||||||
csscript=`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` || exit 99
|
csscript=`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` || exit 99
|
||||||
cat >$csscript <<'EOF'
|
cat >$csscript <<'EOF'
|
||||||
CSOPTS="--pbkdf-force-iterations 1000 --pbkdf=pbkdf2"
|
CSOPTS="--pbkdf-force-iterations 1000 --pbkdf=pbkdf2 --force-password"
|
||||||
cryptsetup $CSOPTS --key-file $lukskeyfile luksAddKey $luksdiskfile $lukskeyfile
|
cryptsetup $CSOPTS --key-file $lukskeyfile luksAddKey $luksdiskfile $lukskeyfile
|
||||||
echo "newpass" | cryptsetup $CSOPTS --key-file $lukskeyfile --key-slot 0 luksChangeKey $luksdiskfile
|
echo "newpass" | cryptsetup $CSOPTS --key-file $lukskeyfile --key-slot 0 luksChangeKey $luksdiskfile
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in new issue
Block a user