bash-stuff/initramfs-tools-hooks/zzz-sign-grub.sh
2024-05-31 23:28:25 +01:00

29 lines
365 B
Bash
Executable File

#!/bin/sh
REREQ=""
prereqs()
{
echo "$PREREQ"
}
error_exit()
{
echo "[ERROR] $1"
exit 1
}
case $1 in
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
echo "> Grub File Signing...";
/usr/share/ubuntu-system-adjustments/systemd/start;
/usr/local/sbin/sign-boot;
echo "> Completed Signing.";
exit 0;