Adapt initramfs hooks
Unlocking entity is now the client, not the server anymore. Change filenames and syntax in initramfs scripts to reflect both.
This commit is contained in:
parent
ab670a431a
commit
ba46e5bb43
@ -2,7 +2,7 @@
|
||||
#
|
||||
# Initramfs-tools hook script for remote LUKS unlocking
|
||||
#
|
||||
# Copyright 2016 Johannes Bauer <joe@johannes-bauer.com>
|
||||
# Copyright 2016-2019 Johannes Bauer <joe@johannes-bauer.com>
|
||||
# Released under GPLv3
|
||||
|
||||
PREREQ=""
|
||||
@ -21,8 +21,8 @@ esac
|
||||
|
||||
. /usr/share/initramfs-tools/hook-functions
|
||||
|
||||
if [ ! -f /etc/luksrku-server.bin ]; then
|
||||
if [ ! -f /etc/luksrku-client.bin ]; then
|
||||
exit 0
|
||||
fi
|
||||
cp /etc/luksrku-server.bin ${DESTDIR}/etc/
|
||||
cp /etc/luksrku-client.bin ${DESTDIR}/etc/
|
||||
copy_exec /usr/local/sbin/luksrku /sbin
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright 2016-2017 Johannes Bauer <joe@johannes-bauer.com>
|
||||
# Copyright 2016-2019 Johannes Bauer <joe@johannes-bauer.com>
|
||||
# Released under GPLv3
|
||||
|
||||
PREREQ="lvm2"
|
||||
@ -22,11 +22,11 @@ esac
|
||||
|
||||
. /scripts/functions
|
||||
|
||||
if [ ! -f /etc/luksrku-server.bin ]; then
|
||||
if [ ! -f /etc/luksrku-client.bin ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
configure_networking
|
||||
/sbin/luksrku --server-mode -v -k /etc/luksrku-server.bin
|
||||
/sbin/luksrku client -v /etc/luksrku-client.bin
|
||||
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user