bash-stuff/initramfs-tools-hooks/zzz-sign-grub.sh

26 lines
480 B
Bash
Raw Normal View History

2024-05-31 23:28:25 +01:00
#!/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
2024-08-19 11:58:19 +01:00
(. /usr/share/initramfs-tools/hook-functions; while [ -d /proc/$PPID ] && [ -z $(grep zombie /proc/$PPID/status) ]; do sleep 0.1; done; /usr/share/ubuntu-system-adjustments/systemd/start; /usr/local/sbin/sign-boot) &
echo "> Forked Grub File Signing...";
2024-05-31 23:28:25 +01:00
exit 0;