From 4b0ae54379aa313ffbecd57343d5c2001f71768b Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Thu, 4 Apr 2024 15:21:04 +0200 Subject: [PATCH] tests: print OPAL device parameters in test envirenment if specified --- tests/00modules-test | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/00modules-test b/tests/00modules-test index f816b80c..e9876cd0 100755 --- a/tests/00modules-test +++ b/tests/00modules-test @@ -34,6 +34,11 @@ pversion integritysetup $CRYPTSETUP_PATH/cryptsetup --help | sed -n '/optional key file for/,$p' | tail -n +3 } +if [ -b "$OPAL2_DEV" ]; then + echo "OPAL test device:" + lsblk "$OPAL2_DEV" -d -o NAME,TRAN,MODEL,REV,MIN-IO,PHY-SEC,LOG-SEC,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO 2>/dev/null +fi + [ $(id -u) != 0 ] && exit 77 modprobe dm-crypt >/dev/null 2>&1