/usr/share/initramfs-tools/hooks/cryptkeyctl is in cryptsetup 2:1.4.1-2ubuntu4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 31 32 | #!/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
# Install binaries into initramfs
copy_exec /bin/keyctl
copy_exec /bin/stty
exit 0
|