From 58b900eb3c1c355ce6c649ae3fbd5b8d3ea17c36 Mon Sep 17 00:00:00 2001 From: Pornpipat Popum Date: Tue, 4 Nov 2025 18:00:18 +0700 Subject: [PATCH] fix(sbctl): Move postinst hook to /etc (#7099) * fix(sbctl): Move postinst hook to /etc * bump release * oops typo * Bruh --- anda/tools/sbctl/sbctl.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/anda/tools/sbctl/sbctl.spec b/anda/tools/sbctl/sbctl.spec index ffb32041c8..939ee0217a 100644 --- a/anda/tools/sbctl/sbctl.spec +++ b/anda/tools/sbctl/sbctl.spec @@ -1,6 +1,6 @@ Name: sbctl Version: 0.18 -Release: 1%?dist +Release: 2%?dist Summary: Secure Boot key manager License: MIT @@ -51,6 +51,10 @@ install -Dm755 %{SOURCE1} -t %{buildroot}%{_bindir} # postinst.d hooks. rm -f %{buildroot}%{_prefix}/lib/kernel/install.d/91-sbctl.install +# 95-kernel-hooks.install only runs postinst scripts from /etc, so move it there +mkdir -p %{buildroot}%{_sysconfdir}/kernel/postinst.d +mv %{buildroot}%{_prefix}/lib/kernel/postinst.d/91-sbctl.install %{buildroot}%{_sysconfdir}/kernel/postinst.d/ + %transfiletriggerin -P 1 -- /efi /usr/lib /usr/libexec if [[ ! -f /run/ostree-booted ]] && grep -q -m 1 -e '\.efi$' -e '/vmlinuz$'; then exec