2016-09-22 20:40:58 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Initramfs-tools hook script for remote LUKS unlocking
|
|
|
|
#
|
2019-10-25 13:06:20 +02:00
|
|
|
# Copyright 2016-2019 Johannes Bauer <joe@johannes-bauer.com>
|
2016-09-22 20:40:58 +02:00
|
|
|
# Released under GPLv3
|
|
|
|
|
|
|
|
PREREQ=""
|
|
|
|
|
|
|
|
prereqs()
|
|
|
|
{
|
|
|
|
echo "$PREREQ"
|
|
|
|
}
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
prereqs)
|
|
|
|
prereqs
|
|
|
|
exit 0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
. /usr/share/initramfs-tools/hook-functions
|
|
|
|
|
2019-10-25 13:06:20 +02:00
|
|
|
if [ ! -f /etc/luksrku-client.bin ]; then
|
2016-09-24 11:50:41 +02:00
|
|
|
exit 0
|
|
|
|
fi
|
2019-10-25 13:06:20 +02:00
|
|
|
cp /etc/luksrku-client.bin ${DESTDIR}/etc/
|
2016-09-22 20:40:58 +02:00
|
|
|
copy_exec /usr/local/sbin/luksrku /sbin
|