Skip to content

Commit

Permalink
Fixed path to haveged in Fedora rpm spec files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jirka Hladky committed Jan 2, 2021
1 parent 90a728b commit 13925fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contrib/Fedora/haveged-switch-root.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion contrib/Fedora/haveged.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13925fb

Please sign in to comment.