summaryrefslogtreecommitdiffstats
path: root/debian/initramfs/hooks/cryptkeyctl
blob: 0bac6769c5315cecad48ab4fc2fb57e4e4088667 (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/sh

set -e

PREREQ="cryptroot"

prereqs()
{
	echo "$PREREQ"
}

case "$1" in
    prereqs)
        prereqs
        exit 0
        ;;
esac

. /usr/share/initramfs-tools/hook-functions

# Hooks for loading keyctl software into the initramfs

# Check whether cryptroot hook has installed decrypt_keyctl script
if [ ! -x "$DESTDIR/lib/cryptsetup/scripts/decrypt_keyctl" ]; then
    exit 0
fi

copy_exec /bin/keyctl

exit 0