blob: 3e8dcd0d835d46dd7de4f05b76d01b3a415e7d03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#!/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 "cryptsetup"
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_module fuse
add_binary "veracrypt"
add_binary "fusermount"
# veracrypts directory
add_dir "/dev/mapper"
add_dir "/tmp"
add_runscript
}
help () {
cat<<HELPEOF
This hook allows for a veracrypt encrypted root (or e.g. home) device.
HELPEOF
}
# vim: set ft=sh ts=4 sw=4 et:
|