summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/cryptsetup/encrypt_install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/cryptsetup/encrypt_install')
-rw-r--r--abs/core-testing/cryptsetup/encrypt_install22
1 files changed, 22 insertions, 0 deletions
diff --git a/abs/core-testing/cryptsetup/encrypt_install b/abs/core-testing/cryptsetup/encrypt_install
new file mode 100644
index 0000000..28cfa3f
--- /dev/null
+++ b/abs/core-testing/cryptsetup/encrypt_install
@@ -0,0 +1,22 @@
+# vim: set ft=sh:
+
+install ()
+{
+ if [ -z "${CRYPTO_MODULES}" ]; then
+ MODULES=" dm-crypt $(all_modules "/crypto/") "
+ else
+ MODULES=" dm-crypt ${CRYPTO_MODULES} "
+ fi
+ BINARIES=""
+ add_dir "/dev/mapper"
+ add_file "/sbin/cryptsetup.static" "/bin/cryptsetup"
+ FILES=""
+ SCRIPT="encrypt"
+}
+
+help ()
+{
+cat<<HELPEOF
+ This hook allows for an encrypted root device.
+HELPEOF
+}