updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / plymouth-git / encrypt_install
blob13174ec06155adda7fb5a31ca80d75fd377550c1
1 # vim: set ft=sh:
3 build()
5     if [ -z "${CRYPTO_MODULES}" ]; then
6         MODULES=" dm-crypt $(all_modules "/crypto/") "
7     else
8         MODULES=" dm-crypt ${CRYPTO_MODULES} "
9     fi
10     FILES=""
11     SCRIPT="encrypt"
12     [ -f "/sbin/cryptsetup" ] && add_binary "/sbin/cryptsetup" "/sbin/cryptsetup"
13     [ -f "/usr/sbin/cryptsetup" ] && add_binary "/usr/sbin/cryptsetup" "/sbin/cryptsetup"
14     add_binary "/sbin/dmsetup"
15     add_file "/lib/udev/rules.d/10-dm.rules"
16     add_file "/lib/udev/rules.d/13-dm-disk.rules"
17     add_file "/lib/udev/rules.d/95-dm-notify.rules"
18     add_file "/lib/initcpio/udev/11-dm-initramfs.rules" "/lib/udev/rules.d/11-dm-initramfs.rules"
21 help ()
23 cat<<HELPEOF
24   This hook allows for an encrypted root device.
25 HELPEOF