2020-05-03 08:43:42 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
2021-05-14 07:47:53 +03:00
|
|
|
if [ "$1" = "prereqs" ]; then
|
|
|
|
|
echo "dropbear"
|
|
|
|
|
exit
|
|
|
|
|
fi
|
2020-05-03 08:43:42 +03:00
|
|
|
|
|
|
|
|
. /usr/share/initramfs-tools/hook-functions
|
|
|
|
|
|
2020-11-10 22:12:07 +03:00
|
|
|
copy_exec /usr/share/initramfs-tools/zfsunlock /usr/bin/zfsunlock
|
2025-08-22 23:11:41 +03:00
|
|
|
|
|
|
|
|
if [ -f /etc/initramfs-tools/etc/motd ]; then
|
|
|
|
|
copy_file text /etc/initramfs-tools/etc/motd /etc/motd
|
|
|
|
|
else
|
|
|
|
|
tmpf=$(mktemp)
|
|
|
|
|
echo "If you use zfs encrypted root filesystems, you can use \`zfsunlock\` to manually unlock it" > "$tmpf"
|
|
|
|
|
copy_file text "$tmpf" /etc/motd
|
|
|
|
|
rm -f "$tmpf"
|
|
|
|
|
fi
|