2020-05-03 00:43:42 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
2021-05-14 06:47:53 +02:00
|
|
|
if [ "$1" = "prereqs" ]; then
|
|
|
|
|
echo "dropbear"
|
|
|
|
|
exit
|
|
|
|
|
fi
|
2020-05-03 00:43:42 -05:00
|
|
|
|
|
|
|
|
. /usr/share/initramfs-tools/hook-functions
|
|
|
|
|
|
2020-11-10 14:12:07 -05:00
|
|
|
copy_exec /usr/share/initramfs-tools/zfsunlock /usr/bin/zfsunlock
|
2025-08-23 04:11:41 +08: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
|