Debian Codegraph @

debian/initramfs/hooks/cryptkeyctl

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 # Hooks for loading keyctl software into the initramfs
22
23 # Check whether cryptroot hook has installed decrypt_keyctl script
24 if [scip-shell system . . `[`. ! -x "$DESTDIR/lib/cryptsetup/scripts/decrypt_keyctl" ]; then
25 exit 0
26 fi
27
28 copy_exec /lib/cryptsetup/askpassscip-shell filesystem . . `/lib/cryptsetup/askpass`.
29 copy_exec /bin/keyctlscip-shell filesystem . . `/bin/keyctl`.
30 exit 0