summaryrefslogtreecommitdiff
path: root/test/TEST-14-IMSM/cryptroot-ask.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/TEST-14-IMSM/cryptroot-ask.sh')
-rwxr-xr-xtest/TEST-14-IMSM/cryptroot-ask.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/TEST-14-IMSM/cryptroot-ask.sh b/test/TEST-14-IMSM/cryptroot-ask.sh
new file mode 100755
index 00000000..db27c5b8
--- /dev/null
+++ b/test/TEST-14-IMSM/cryptroot-ask.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+[ -b /dev/mapper/$2 ] && exit 0
+echo -n test >/keyfile
+/sbin/cryptsetup luksOpen $1 $2 </keyfile
+