3 [ -z "$CRYPTSETUP_PATH" ] && CRYPTSETUP_PATH=".."
6 if [ ! -x $CRYPTSETUP_PATH/$1 ] ; then
10 echo -n "$CRYPTSETUP_PATH/"
11 $CRYPTSETUP_PATH/$1 --version
14 echo "Cryptsetup test environment ($(date))"
16 if [ "$(cat /proc/sys/crypto/fips_enabled 2>/dev/null)" = "1" ] ; then
17 echo "Kernel running in FIPS mode."
20 if [ -f /etc/os-release ] ; then
21 source /etc/os-release
22 echo "$PRETTY_NAME ($NAME) $VERSION"
30 pversion integritysetup
31 pversion cryptsetup-reencrypt
33 [ $(id -u) != 0 ] && exit 77
35 modprobe dm-crypt >/dev/null 2>&1
36 modprobe dm-verity >/dev/null 2>&1
37 modprobe dm-integrity >/dev/null 2>&1
38 modprobe dm-zero >/dev/null 2>&1
42 echo "Device mapper targets:"