fix: do not run file triggers if installed on an atomic distro (#5004) (#5008)

* fix: do not run file triggers if installed on an atomic distro



* Update anda/tools/sbctl/sbctl.spec




* fix: bump release. Added changelog



---------




(cherry picked from commit 3df34c5c52)

Signed-off-by: Esteve Fernandez <esteve@apache.org>
Signed-off-by: Esteve Fernandez <33620+esteve@users.noreply.github.com>
Co-authored-by: Esteve Fernandez <33620+esteve@users.noreply.github.com>
Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2025-05-24 05:05:15 -07:00
committed by GitHub
parent 47b4097e41
commit e5eef2fb3e
+5 -2
View File
@@ -1,6 +1,6 @@
Name: sbctl
Version: 0.17
Release: 1%?dist
Release: 2%?dist
Summary: Secure Boot key manager
License: MIT
@@ -42,7 +42,7 @@ export GOPATH=%{_builddir}/go
%transfiletriggerin -P 1 -- /boot /efi /usr/lib /usr/libexec
if grep -q -m 1 -e '\.efi$' -e '/vmlinuz$'; then
if [[ ! -f /run/ostree-booted ]] && grep -q -m 1 -e '\.efi$' -e '/vmlinuz$'; then
exec </dev/null
%{_bindir}/sbctl sign-all -g
fi
@@ -61,6 +61,9 @@ fi
%changelog
* Sat May 24 2025 Esteve Fernandez <esteve@apache.org> - 0.17-2
- Do not run file triggers on atomic systems
* Sat Mar 30 2024 Cappy Ishihara <cappy@cappuchino.xyz> - 0.13-1
- Push to Terra