diff options
Diffstat (limited to 'tests/cryptsetup')
-rw-r--r-- | tests/cryptsetup | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/cryptsetup b/tests/cryptsetup new file mode 100644 index 0000000..f197832 --- /dev/null +++ b/tests/cryptsetup @@ -0,0 +1,9 @@ + LOOP=/dev/loop1 + modprobe dm-crypt + apk_add $@ + dd if=/dev/zero of=luks.dsk bs=1024 count=2048 + losetup $LOOP luks.dsk + echo "testpassword" | cryptsetup luksFormat $LOOP -q + losetup -d $LOOP + rm luks.dsk + apk_del $@ |