0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.224.60.19


Current Path : /proc/self/root/usr/share/initramfs-tools/hooks/
Upload File :
Current File : //proc/self/root/usr/share/initramfs-tools/hooks/cryptroot-unlock

#!/bin/sh

PREREQ=""

prereqs()
{
	echo "$PREREQ"
}

case "$1" in
prereqs)
	 prereqs
	 exit 0
	;;
esac

cp -p /usr/share/cryptsetup/initramfs/bin/cryptroot-unlock "$DESTDIR/bin/cryptroot-unlock"

if [ -f /etc/initramfs-tools/etc/motd ]; then
	cp /etc/initramfs-tools/etc/motd "$DESTDIR/etc/motd"
else
	cat >>"$DESTDIR/etc/motd" <<- EOF
		To unlock root partition, and maybe others like swap, run \`cryptroot-unlock\`
	EOF
fi