Debian Codegraph @

debian/initramfs/hooks/cryptkeyctl

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