mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 16:06:42 +02:00
The existing hooks in the secureboot package don't work with systemd-efistub due to a mismatch in some hardcoded magic numbers. Add a kernel hook for ukify, which works with systemd-efistub. This new hook changes the default location and filename to comply with systemd's conventions, so administrator will need to reconfigure their systems' firmware to boot from these new paths. A wiki entry with full details on configuring this is pending. Fixes: https://gitlab.alpinelinux.org/alpine/aports/-/issues/16917
16 lines
357 B
Bash
16 lines
357 B
Bash
#!/bin/sh
|
|
|
|
ln -s /usr/share/kernel-hooks.d/ukify.hook /etc/kernel-hooks.d/50-ukify.hook
|
|
|
|
case "$(. /etc/mkinitfs/mkinitfs.conf 2>/dev/null; printf %s "$disable_trigger")" in
|
|
yes | true | 1) exit 0;;
|
|
esac
|
|
|
|
cat >&2 <<EOF
|
|
*
|
|
* After configuring Secure Boot, disable mkinitfs trigger:
|
|
* echo 'disable_trigger=yes' >> /etc/mkinitfs/mkinitfs.conf
|
|
*
|
|
EOF
|
|
|
|
exit 0
|