aports/testing/systemd-boot/ukify-kernel-hook.pre-deinstall
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

11 lines
183 B
Bash

#!/bin/sh
HOOK_FILE='/usr/share/kernel-hooks.d/ukify.hook'
for link in /etc/kernel-hooks.d/*; do
if [ "$(readlink -f "$link")" = "$HOOK_FILE" ]; then
rm "$link"
fi
done
exit 0