aports/testing/systemd-boot/ukify-kernel-hook.post-install
Hugo Osvaldo Barrera 010a987118 testing/ukify: add kernel-hook subpackage
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
2025-03-16 22:10:04 +00:00

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