summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJirka Hladky <jhladky@redhat.com>2021-01-02 23:00:39 +0100
committerJirka Hladky <jhladky@redhat.com>2021-01-02 23:00:39 +0100
commit13925fb7eb35095f5321f69b126987c381db1a5e (patch)
treeb71aebd7f6c13663c30922d100c8fe425e6743a4
parentFixed typo (diff)
downloadhaveged-13925fb7eb35095f5321f69b126987c381db1a5e.tar.xz
haveged-13925fb7eb35095f5321f69b126987c381db1a5e.zip
Fixed path to haveged in Fedora rpm spec files
-rw-r--r--contrib/Fedora/haveged-switch-root.service2
-rw-r--r--contrib/Fedora/haveged.spec2
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/Fedora/haveged-switch-root.service b/contrib/Fedora/haveged-switch-root.service
index 9757da4..8cc38cf 100644
--- a/contrib/Fedora/haveged-switch-root.service
+++ b/contrib/Fedora/haveged-switch-root.service
@@ -6,7 +6,7 @@ Before=initrd-switch-root.service
JoinsNamespaceOf=haveged.service
[Service]
-ExecStart=-/usr/sbin/haveged -c root=/sysroot
+ExecStart=-@SBIN_DIR@/haveged -c root=/sysroot
PrivateNetwork=yes
Type=oneshot
StandardInput=null
diff --git a/contrib/Fedora/haveged.spec b/contrib/Fedora/haveged.spec
index d1c5b72..9dc4bea 100644
--- a/contrib/Fedora/haveged.spec
+++ b/contrib/Fedora/haveged.spec
@@ -59,7 +59,7 @@ make install DESTDIR=%{buildroot} INSTALL="install -p"
chmod 0644 COPYING README ChangeLog AUTHORS
#Install systemd service file
-sed -e 's:@SBIN_DIR@:%{_sbindir}:g' -i init.d/service.fedora
+sed -e 's:@SBIN_DIR@:%{_sbindir}:g' -i contrib/Fedora/*service
install -Dpm 0644 contrib/Fedora/haveged.service %{buildroot}%{_unitdir}/%{name}.service
install -Dpm 0644 contrib/Fedora/haveged-switch-root.service %{buildroot}%{_unitdir}/%{name}-switch-root.service
install -Dpm 0755 contrib/Fedora/haveged-dracut.module %{buildroot}/%{_prefix}/%{dracutlibdir}/modules.d/98%{name}/module-setup.sh