Debian Codegraph @

cryptsetup/initramfs-hooks/kxc

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 set -e
4
5 PREREQ="cryptroot"
6
7 prereqsscip-shell shell shell-project 0.0.0 prereqs().()
8 {
9 echoscip-shell system . . echo. "$PREREQ"
10 }
11
12 case $1 in
13 prereqs)
14 prereqsscip-shell shell shell-project 0.0.0 prereqs().
15 exit 0
16 ;;
17 esac
18
19 . /usr/share/initramfs-tools/hook-functionsscip-shell source . . `/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/kxcscip-shell filesystem . . `/usr/bin/kxc`. /binscip-shell filesystem . . `/bin`.
25
26 # Install the configuration into initramfs (if it exists).
27 if [scip-shell system . . `[`. -d /etc/kxc/scip-shell filesystem . . `/etc/kxc/`. ]; then
28 cpscip-shell system . . cp. -a /etc/kxc/scip-shell filesystem . . `/etc/kxc/`. ${DESTDIR}/etc
29 fi