blob: d35096658cee411055447466f6b684b5c87829e7 (
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
31
32
33
|
#!/bin/sh
set -e
PREREQ="cryptroot"
prereqs()
{
echo "$PREREQ"
}
case "$1" in
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
# Copy the file that we diverted away and that does the real work
if [ -e /lib/cryptsetup/askpass.cryptsetup ]; then
copy_exec /lib/cryptsetup/askpass.cryptsetup
fi
# Copy the password hash to recognize the nuke password
if [ -e /etc/cryptsetup-nuke-password/password_hash ]; then
copy_file conffile /etc/cryptsetup-nuke-password/password_hash
fi
copy_exec /usr/lib/cryptsetup-nuke-password/crypt
exit 0
|