From 70a90aaaa8555c0799ecb8aabab2dd11191ee095 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Thu, 4 Sep 2025 00:18:16 -0700 Subject: [PATCH] fix?(sbctl): Try to run triggers after kernel post scripts run (#6090) (#6316) * fix?(sbctl): Try to run triggers after kernel post scripts run * ...? * Actually --------- (cherry picked from commit d2f41980c7a3bc157b1542f7b607ad465f8c8b11) Signed-off-by: Gilver Co-authored-by: Gilver --- anda/tools/sbctl/sbctl.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/anda/tools/sbctl/sbctl.spec b/anda/tools/sbctl/sbctl.spec index 2de66554d7..dc7155425c 100644 --- a/anda/tools/sbctl/sbctl.spec +++ b/anda/tools/sbctl/sbctl.spec @@ -1,6 +1,6 @@ Name: sbctl Version: 0.17 -Release: 3%?dist +Release: 4%?dist Summary: Secure Boot key manager License: MIT @@ -45,7 +45,13 @@ export GOPATH=%{_builddir}/go %make_install PREFIX=%{_prefix} install -Dm755 %{SOURCE1} -t %{buildroot}%{_bindir} -%transfiletriggerin -P 1 -- /boot /efi /usr/lib /usr/libexec +%transfiletriggerin -P 1 -- /efi /usr/lib /usr/libexec +if [[ ! -f /run/ostree-booted ]] && grep -q -m 1 -e '\.efi$' -e '/vmlinuz$'; then + exec