Skip to content

Commit

Permalink
Add opal test for detached header erase command.
Browse files Browse the repository at this point in the history
  • Loading branch information
oniko committed Jun 5, 2024
1 parent 494c510 commit 97c5f47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/compat-test-opal
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ function test_device_detached_header() #hdr, #opal_mode, #format_params, #--inte
$CRYPTSETUP close $DEV_NAME --header $1 || fail
dd if=$OPAL2_DEV of=/dev/zero bs=1M count=1 iflag=direct >/dev/null 2>&1 && fail
echo $OPAL2_ADMIN_PIN | $CRYPTSETUP luksErase $OPAL2_DEV -q --header $1 || fail
$CRYPTSETUP isLuks --type luks2 $1 && fail
rm -f $1
}

Expand Down

0 comments on commit 97c5f47

Please sign in to comment.