From df3edfaed2c72f390358dc58a527bc683f758023 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 24 May 2025 05:05:23 -0700 Subject: [PATCH] fix: do not run file triggers if installed on an atomic distro (#5004) (#5006) * 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 3df34c5c5249f9b13c874156d8fe120d87b3b260) Signed-off-by: Esteve Fernandez 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 --- anda/tools/sbctl/sbctl.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/anda/tools/sbctl/sbctl.spec b/anda/tools/sbctl/sbctl.spec index aba3b0d989..f7cdd47525 100644 --- a/anda/tools/sbctl/sbctl.spec +++ b/anda/tools/sbctl/sbctl.spec @@ -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 - 0.17-2 +- Do not run file triggers on atomic systems + * Sat Mar 30 2024 Cappy Ishihara - 0.13-1 - Push to Terra