From ded1e53cc9b66f97bd4144c501a6ab0dd8513c27 Mon Sep 17 00:00:00 2001 From: Sohan Kunkerkar Date: Thu, 8 Apr 2021 04:27:09 -0400 Subject: [PATCH] Fix hardcoded library path --- rust-coreos-installer.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rust-coreos-installer.spec b/rust-coreos-installer.spec index 106f79a..35dfece 100644 --- a/rust-coreos-installer.spec +++ b/rust-coreos-installer.spec @@ -83,7 +83,7 @@ sed -i 's/"-Ccodegen-units=1",//' .cargo/config %install %cargo_install -f rdcore # Install binaries, dracut modules, units, targets, generators for running via systemd -install -D -m 0755 -t %{buildroot}%{_prefix}/lib/dracut/modules.d/50rdcore dracut/50rdcore/module-setup.sh +install -D -m 0755 -t %{buildroot}%{_libdir}/dracut/modules.d/50rdcore dracut/50rdcore/module-setup.sh install -D -m 0755 -t %{buildroot}%{_libexecdir} scripts/coreos-installer-service install -D -m 0755 -t %{buildroot}%{_libexecdir} scripts/coreos-installer-disable-device-auto-activation install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-disable-device-auto-activation.service @@ -94,7 +94,7 @@ install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-pre.targe install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer.target install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-post.target install -D -m 0755 -t %{buildroot}%{_systemdgeneratordir} systemd/coreos-installer-generator -mv %{buildroot}%{_bindir}/rdcore %{buildroot}%{_prefix}/lib/dracut/modules.d/50rdcore/ +mv %{buildroot}%{_bindir}/rdcore %{buildroot}%{_libdir}/dracut/modules.d/50rdcore/ %package -n %{crate}-bootinfra Summary: %{crate} boot-time infrastructure for use on Fedora/RHEL CoreOS @@ -116,7 +116,7 @@ This subpackage contains boot-time infrastructure for Fedora CoreOS and RHEL CoreOS. It is not needed on other platforms. %files -n %{crate}-bootinfra -%{_prefix}/lib/dracut/modules.d/* +%{_libdir}/dracut/modules.d/* %{_libexecdir}/* %{_unitdir}/* %{_systemdgeneratordir}/* @@ -128,7 +128,8 @@ RHEL CoreOS. It is not needed on other platforms. %changelog * Thu Apr 08 2021 Sohan Kunkerkar - 0.9.0-1 -- New release +- New release +- Fix hardcoded library path * Tue Mar 16 2021 Sohan Kunkerkar - 0.8.0-1 - New release