Don't do "live" operations during rpm-ostree composes

This commit is contained in:
Steve Grubb 2024-01-25 22:23:59 -05:00
parent d4d301651e
commit bd59e99c3f

View File

@ -2,7 +2,7 @@
Summary: User space tools for kernel auditing
Name: audit
Version: 4.0
Release: 6%{?dist}
Release: 7%{?dist}
License: GPL-2.0-or-later AND LGPL-2.0-or-later
URL: http://people.redhat.com/sgrubb/audit/
Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
@ -139,7 +139,7 @@ rm -f rules/Makefile*
%post
%systemd_post auditd.service
# Do not perform service start/restart when running during an rpm-ostree compose
if [[ -f /run/ostree-booted ]]: then
if [ -f /run/ostree-booted ] ; then
exit 0
fi
# If an upgrade, restart it if it's running
@ -172,7 +172,7 @@ if [ "$files" -eq 0 ] ; then
install -m 0600 -u 0 -g 0 /dev/null /etc/audit/rules.d/audit.rules
fi
# Only load the new rules if not running during an rpm-ostree compose
if [[ ! -f /run/ostree-booted ]]: then
if [ ! -f /run/ostree-booted ] ; then
# Make the new rules active
augenrules --load || true
fi
@ -291,7 +291,7 @@ fi
%attr(750,root,root) %{_sbindir}/audispd-zos-remote
%changelog
* Thu Jan 25 2024 Steve Grubb <sgrubb@redhat.com> 4.0-6
* Thu Jan 25 2024 Steve Grubb <sgrubb@redhat.com> 4.0-7
- Don't do "live" operations during rpm-ostree composes
* Wed Jan 24 2024 Steve Grubb <sgrubb@redhat.com> 4.0-5