summaryrefslogtreecommitdiffstats
path: root/tests/00modules-test
blob: ddf08b8c7406589ac97b0d8d58f8b6cbb3c3582a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash

echo "Cryptsetup test environment ($(date))"
uname -a

if [ -f /etc/os-release ] ; then
	source /etc/os-release
	echo "$PRETTY_NAME ($NAME) $VERSION"
fi

[ -x ../cryptsetup ] && ../cryptsetup --version
[ -x ../veritysetup ] && ../veritysetup --version
[ -x ../integritysetup ] && ../integritysetup --version
[ -x ../cryptsetup-reencrypt ] && ../cryptsetup-reencrypt --version

[ $(id -u) != 0 ] && exit 77

modprobe dm-crypt     >/dev/null 2>&1
modprobe dm-verity    >/dev/null 2>&1
modprobe dm-integrity >/dev/null 2>&1
modprobe dm-zero      >/dev/null 2>&1

dmsetup version

echo "Device mapper targets:"
dmsetup targets

exit 0