Don't do "live" operations during rpm-ostree composes
This commit is contained in:
		
							parent
							
								
									d4d301651e
								
							
						
					
					
						commit
						bd59e99c3f
					
				| @ -2,7 +2,7 @@ | |||||||
| Summary: User space tools for kernel auditing | Summary: User space tools for kernel auditing | ||||||
| Name: audit | Name: audit | ||||||
| Version: 4.0 | Version: 4.0 | ||||||
| Release: 6%{?dist} | Release: 7%{?dist} | ||||||
| License: GPL-2.0-or-later AND LGPL-2.0-or-later | License: GPL-2.0-or-later AND LGPL-2.0-or-later | ||||||
| URL: http://people.redhat.com/sgrubb/audit/ | URL: http://people.redhat.com/sgrubb/audit/ | ||||||
| Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz | Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz | ||||||
| @ -139,7 +139,7 @@ rm -f rules/Makefile* | |||||||
| %post | %post | ||||||
| %systemd_post auditd.service | %systemd_post auditd.service | ||||||
| # Do not perform service start/restart when running during an rpm-ostree compose | # 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 |     exit 0 | ||||||
| fi | fi | ||||||
| # If an upgrade, restart it if it's running | # 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 |         install -m 0600 -u 0 -g 0 /dev/null /etc/audit/rules.d/audit.rules | ||||||
|     fi |     fi | ||||||
|     # Only load the new rules if not running during an rpm-ostree compose |     # 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 |         # Make the new rules active | ||||||
|         augenrules --load || true |         augenrules --load || true | ||||||
|     fi |     fi | ||||||
| @ -291,7 +291,7 @@ fi | |||||||
| %attr(750,root,root) %{_sbindir}/audispd-zos-remote | %attr(750,root,root) %{_sbindir}/audispd-zos-remote | ||||||
| 
 | 
 | ||||||
| %changelog | %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 | - Don't do "live" operations during rpm-ostree composes | ||||||
| 
 | 
 | ||||||
| * Wed Jan 24 2024 Steve Grubb <sgrubb@redhat.com> 4.0-5 | * Wed Jan 24 2024 Steve Grubb <sgrubb@redhat.com> 4.0-5 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user