blob: 2ffb4ba6eca9978472a9c80d72c7ee43d9e79e14 (
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
|
#!/bin/bash
build() {
if [ -d "${BUILDROOT}/.gnupg" ]; then
echo "WARNING! /.gnupg exists in initramfs buildroot, deleting." > 2
rm -rf "${BUILDROOT}/.gnupg"
fi
mkdir -p "${BUILDROOT}/.gnupg"
chmod 0700 "${BUILDROOT}/.gnupg"
echo 'pinentry-program /usr/bin/pinentry-tty' > "${BUILDROOT}/.gnupg/gpg-agent.conf"
add_binary "gpg"
add_binary "gpg-agent"
add_binary "pinentry-tty"
add_binary "/usr/lib/gnupg/scdaemon"
add_file "/rootkey.gpg"
add_runscript
}
help() {
cat <<HELPEOF
decrypt /rootkey.gpg and set encrypt's cryptkey param accordingly
HELPEOF
}
# vim: set ft=sh:
|