Debian Codegraph @

cryptsetup/initramfs-hooks/kxc

raw symbols SCIP
1 #!/bin/sh
2
3 set -e
4
5 PREREQ="cryptroot"
6
7 prereqs()
8 {
9 echo "$PREREQ"
10 }
11
12 case $1 in
13 prereqs)
14 prereqs
15 exit 0
16 ;;
17 esac
18
19 . /usr/share/initramfs-tools/hook-functions
20
21 # Install binaries into initramfs.
22 # Note we don't need to install kxc-cryptsetup, as the cryptroot hook will do
23 # it for us if it sees it being used as a keyscript.
24 copy_exec /usr/bin/kxc /bin
25
26 # Install the configuration into initramfs (if it exists).
27 if [ -d /etc/kxc/ ]; then
28 cp -a /etc/kxc/ ${DESTDIR}/etc
29 fi