diff --git a/irqbalance-1.9.0-environment-file-sysconfig.patch b/irqbalance-1.9.0-environment-file-sysconfig.patch new file mode 100644 index 0000000..1cc15e5 --- /dev/null +++ b/irqbalance-1.9.0-environment-file-sysconfig.patch @@ -0,0 +1,26 @@ +From 9d3070150d151bfd5535c3da43313511659d882e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Timoth=C3=A9e=20Ravier?= +Date: Mon, 1 Aug 2022 15:52:24 +0200 +Subject: [PATCH] misc/irqbalance.service: Use sysconfig for EnvironmentFile + +--- + misc/irqbalance.service | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/misc/irqbalance.service b/misc/irqbalance.service +index 0f79c3e..9bc63b6 100644 +--- a/misc/irqbalance.service ++++ b/misc/irqbalance.service +@@ -6,8 +6,7 @@ ConditionVirtualization=!container + 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 +-- +2.37.1 + diff --git a/irqbalance.spec b/irqbalance.spec index 30ba01b..4c37d98 100644 --- a/irqbalance.spec +++ b/irqbalance.spec @@ -8,6 +8,7 @@ License: GPLv2 URL: https://github.com/Irqbalance/irqbalance Source0: %{url}/archive/v%{version}/irqbalance-%{version}.tar.gz Source1: irqbalance.sysconfig +Patch1: irqbalance-1.9.0-environment-file-sysconfig.patch BuildRequires: autoconf automake libtool libcap-ng @@ -65,6 +66,7 @@ make check %changelog * Mon Aug 01 2022 Timothée Ravier - 2:1.9.0-1 - Update to 1.9.0 (fedora#1952715 fedora#2091169 fedora#2063926) +- Fix EnvironmentFile location in systemd unit (fedora#2058510) * Sun Jul 24 2022 Leigh Scott - 2:1.8.0-4 - Fix compile issue