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 d2f41980c7)

Signed-off-by: Gilver <rockgrub@disroot.org>
Co-authored-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
Raboneko
2025-09-04 00:18:16 -07:00
committed by GitHub
parent df02421a7f
commit 70a90aaaa8
+8 -2
View File
@@ -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 </dev/null
%{_bindir}/sbctl-batch-sign
fi
%filetriggerpostun -P 1 -- /boot
if [[ ! -f /run/ostree-booted ]] && grep -q -m 1 -e '\.efi$' -e '/vmlinuz$'; then
exec </dev/null
%{_bindir}/sbctl-batch-sign