diff --git a/irqbalance-1.6.0-env-file-path.patch b/irqbalance-1.6.0-env-file-path.patch deleted file mode 100644 index 9423071..0000000 --- a/irqbalance-1.6.0-env-file-path.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/misc/irqbalance.service 2020-06-02 14:33:35.794592546 +0200 -+++ b/misc/irqbalance.service 2020-06-02 14:34:08.678922108 +0200 -@@ -5,7 +5,7 @@ - ConditionVirtualization=!container - - [Service] --EnvironmentFile=/path/to/irqbalance.env -+EnvironmentFile=/etc/sysconfig/irqbalance - ExecStart=/usr/sbin/irqbalance --foreground $IRQBALANCE_ARGS - CapabilityBoundingSet= - NoNewPrivileges=yes diff --git a/irqbalance-1.8.0-env-file-path.patch b/irqbalance-1.8.0-env-file-path.patch new file mode 100644 index 0000000..1c9e326 --- /dev/null +++ b/irqbalance-1.8.0-env-file-path.patch @@ -0,0 +1,13 @@ +diff --git a/misc/irqbalance.service b/misc/irqbalance.service +index 0f79c3e..18c7e9b 100644 +--- a/misc/irqbalance.service ++++ b/misc/irqbalance.service +@@ -7,7 +7,7 @@ ConditionCPUs=>1 + + [Service] + EnvironmentFile=-/usr/lib/irqbalance/defaults.env +-EnvironmentFile=-/path/to/irqbalance.env ++EnvironmentFile=-/etc/sysconfig/irqbalance + ExecStart=/usr/sbin/irqbalance --foreground $IRQBALANCE_ARGS + ReadOnlyPaths=/ + ReadWritePaths=/proc/irq diff --git a/irqbalance.spec b/irqbalance.spec index 96b4b15..4f6f3e6 100644 --- a/irqbalance.spec +++ b/irqbalance.spec @@ -28,6 +28,7 @@ Patch2: irqbalance-1.8.0-Disable-the-communication-socket-when-UI-is-disabled.pa Patch3: irqbalance-1.8.0-Drop-CapabilityBoundingSet-from-irqbalance-service.patch Patch4: irqbalance-1.8.0-Confine-irqbalance-to-systems-where-it-is-useful.patch Patch5: irqbalance-1.8.0-Document-migrateval.patch +Patch6: irqbalance-1.8.0-env-file-path.patch %description irqbalance is a daemon that evenly distributes IRQ load across @@ -40,6 +41,7 @@ multiple CPUs for enhanced performance. %patch3 -p1 %patch4 -p1 %patch5 -p1 +%patch6 -p1 %build ./autogen.sh