luksrku/initramfs/luksrku-hook
Johannes Bauer ba46e5bb43 Adapt initramfs hooks
Unlocking entity is now the client, not the server anymore. Change
filenames and syntax in initramfs scripts to reflect both.
2019-10-25 13:06:20 +02:00

29 lines
430 B
Bash
Executable File

#!/bin/sh
#
# Initramfs-tools hook script for remote LUKS unlocking
#
# Copyright 2016-2019 Johannes Bauer <joe@johannes-bauer.com>
# Released under GPLv3
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
if [ ! -f /etc/luksrku-client.bin ]; then
exit 0
fi
cp /etc/luksrku-client.bin ${DESTDIR}/etc/
copy_exec /usr/local/sbin/luksrku /sbin