-
Notifications
You must be signed in to change notification settings - Fork 0
/
encryptssh_install
35 lines (28 loc) · 929 Bytes
/
encryptssh_install
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
#!/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_runscript
}
help() {
cat <<HELPEOF
This hook allows for an encrypted root device to be unlocked remotely over SSH.
Users should specify the IP configuration using the ip= kernel parameter, which
is adapted from "mkinitcpio-nfs-utils".
This hook should always be used in combination with the "dropbear" hook. Add
this hook after the "dropbear", though.
HELPEOF
}