Release 1.9.4-2

Add /usr/libexec/irqbalance dir for policyscripts

Resolves: RHEL-47588

Signed-off-by: Tao Liu <ltao@redhat.com>
This commit is contained in:
Tao Liu 2024-11-06 21:49:35 +13:00
parent 126b76271a
commit 26cdeb95e7
2 changed files with 22 additions and 1 deletions

14
irqbalance-manual.patch Normal file
View File

@ -0,0 +1,14 @@
diff --git a/irqbalance.1 b/irqbalance.1
index 05f7b48..ec6ace7 100644
--- a/irqbalance.1
+++ b/irqbalance.1
@@ -98,7 +98,8 @@ if a directory is specified, non-executable files will be skipped.
The script may specify zero or more key=value pairs that will guide irqbalance in
the management of that IRQ. Key=value pairs are printed by the script on stdout
and will be captured and interpreted by irqbalance. Irqbalance expects a zero
-exit code from the provided utility. Recognized key=value pairs are:
+exit code from the provided utility. "/usr/libexec/irqbalance" is a preferred dir for
+placing the scripts, otherwise it may encounter selinux issues if enabled.
.TP
.I ban=[true | false]
Directs irqbalance to exclude the passed in IRQ from balancing.

View File

@ -1,6 +1,6 @@
Name: irqbalance
Version: 1.9.4
Release: 1%{?dist}
Release: 2%{?dist}
Epoch: 2
Summary: IRQ balancing daemon
@ -66,6 +66,7 @@ Patch44: 0043-irqbalance.1-a-b-a-b-it-s-type-its-type.patch
Patch45: 0044-Use-EPERM-instead-of-EIO-when-try-setting-irq-affini.patch
Patch46: irqbalance-1.9.0-environment-file-sysconfig.patch
Patch47: irqbalance-manual.patch
%description
irqbalance is a daemon that evenly distributes IRQ load across
@ -86,6 +87,7 @@ install -D -p -m 0644 ./misc/irqbalance.service %{buildroot}/%{_unitdir}/irqbala
install -D -p -m 0644 ./misc/irqbalance.env %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -d %{buildroot}%{_mandir}/man1/
install -p -m 0644 ./irqbalance.1 %{buildroot}%{_mandir}/man1/
install -d %{buildroot}%{_libexecdir}/irqbalance/
%check
make check
@ -96,6 +98,7 @@ make check
%{_sbindir}/irqbalance-ui
%{_unitdir}/irqbalance.service
%{_mandir}/man1/*
%dir %{_libexecdir}/irqbalance
%config(noreplace) %{_sysconfdir}/sysconfig/irqbalance
%post
@ -108,6 +111,10 @@ make check
%systemd_postun_with_restart irqbalance.service
%changelog
* Wed Nov 6 2024 Tao Liu <ltao@redhat.com> - 2:1.9.4-2
- Release 1.9.4-2
- Rebase to upstream commit (b4b6f194da)
* Wed May 01 2024 Tao Liu <ltao@redhat.com> - 2:1.9.4-1
- Rebase to upstream commit (f2c8309a41)