summaryrefslogtreecommitdiffstats
path: root/abs/core/cryptsetup/sd-encrypt
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2014-02-16 23:43:39 (GMT)
committerJames Meyer <james.meyer@operamail.com>2014-02-19 19:03:02 (GMT)
commit798be4135a1867350244b32359bf7fbd9ae1f091 (patch)
tree12f4e30c3ea5f08c8f4a6f3e2990b322458a12b6 /abs/core/cryptsetup/sd-encrypt
parent0c22271a585e48d1e9cea35f3b0a962dd15b72b0 (diff)
downloadlinhes_pkgbuild-798be4135a1867350244b32359bf7fbd9ae1f091.zip
linhes_pkgbuild-798be4135a1867350244b32359bf7fbd9ae1f091.tar.gz
linhes_pkgbuild-798be4135a1867350244b32359bf7fbd9ae1f091.tar.bz2
cryptsetup: 1.6.3
update binary path to /usr/bin refs #961
Diffstat (limited to 'abs/core/cryptsetup/sd-encrypt')
-rw-r--r--abs/core/cryptsetup/sd-encrypt42
1 files changed, 42 insertions, 0 deletions
diff --git a/abs/core/cryptsetup/sd-encrypt b/abs/core/cryptsetup/sd-encrypt
new file mode 100644
index 0000000..c18fd2f
--- /dev/null
+++ b/abs/core/cryptsetup/sd-encrypt
@@ -0,0 +1,42 @@
+#!/bin/bash
+
+build() {
+ local mod
+
+ add_module dm-crypt
+ if [[ $CRYPTO_MODULES ]]; then
+ for mod in $CRYPTO_MODULES; do
+ add_module "$mod"
+ done
+ else
+ add_all_modules '/crypto/'
+ fi
+
+ add_binary "dmsetup"
+ add_file "/usr/lib/udev/rules.d/10-dm.rules"
+ 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_systemd_unit cryptsetup.target
+ add_binary /usr/lib/systemd/system-generators/systemd-cryptsetup-generator
+ add_binary /usr/lib/systemd/systemd-cryptsetup
+
+ add_systemd_unit systemd-ask-password-console.path
+ add_systemd_unit systemd-ask-password-console.service
+
+ [[ -f /etc/crypttab.initramfs ]] && add_file /etc/crypttab.initramfs /etc/crypttab
+}
+
+help() {
+ cat <<HELPEOF
+This hook allows for an encrypted root device with systemd initramfs.
+
+See the manpage of systemd-cryptsetup-generator(8) for available kernel
+command line options. Alternatively, if the file /etc/crypttab.initramfs
+exists, it will be added to the initramfs as /etc/crypttab. See the
+crypttab(5) manpage for more information on crypttab syntax.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et: