summaryrefslogtreecommitdiff
path: root/testing/cryptsetup/encrypt_install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-05-27 00:05:57 +0000
committerroot <root@rshg054.dnsready.net>2012-05-27 00:05:57 +0000
commit1f45ad8e3f17397e2f44e68ef9a0d860091eea9e (patch)
treec739dcbb4950142bbb793715bfd19fb2d6cc80ef /testing/cryptsetup/encrypt_install
parenta5721a07196cf00c26ea1bfb651aab756d202ccb (diff)
Sun May 27 00:05:56 UTC 2012
Diffstat (limited to 'testing/cryptsetup/encrypt_install')
-rw-r--r--testing/cryptsetup/encrypt_install17
1 files changed, 11 insertions, 6 deletions
diff --git a/testing/cryptsetup/encrypt_install b/testing/cryptsetup/encrypt_install
index 79d2f3e4b..38e5ddc57 100644
--- a/testing/cryptsetup/encrypt_install
+++ b/testing/cryptsetup/encrypt_install
@@ -1,13 +1,16 @@
#!/bin/bash
build() {
- if [ -z "${CRYPTO_MODULES}" ]; then
- MODULES=" dm-crypt $(all_modules "/crypto/")"
+ local mod
+
+ add_module dm-crypt
+ if [[ $CRYPTO_MODULES ]]; then
+ for mod in $CRYPTO_MODULES; do
+ add_module "$mod"
+ done
else
- MODULES=" dm-crypt $CRYPTO_MODULES"
+ add_all_modules '/crypto/'
fi
- FILES=""
- SCRIPT="encrypt"
add_binary "cryptsetup"
add_binary "dmsetup"
@@ -15,10 +18,12 @@ build() {
add_file "/usr/lib/udev/rules.d/13-dm-disk.rules"
add_file "/usr/lib/udev/rules.d/95-dm-notify.rules"
add_file "/usr/lib/initcpio/udev/11-dm-initramfs.rules" "/usr/lib/udev/rules.d/11-dm-initramfs.rules"
+
+ add_runscript
}
help() {
- cat <<HELPEOF
+ cat <<HELPEOF
This hook allows for an encrypted root device. Users should specify the device
to be unlocked using 'cryptdevice=device:dmname' on the kernel command line,
where 'device' is the path to the raw device, and 'dmname' is the name given to