Fix dracut library path
This commit is contained in:
parent
ded1e53cc9
commit
e4aa3bb042
2
rust-coreos-installer.rpmlintrc
Normal file
2
rust-coreos-installer.rpmlintrc
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Suppress hardcoded library path warning
|
||||||
|
addFilter("hardcoded-library-path in %{_prefix}/lib/dracut")
|
@ -1,4 +1,5 @@
|
|||||||
# Generated by rust2rpm 16
|
# Generated by rust2rpm 16
|
||||||
|
%define dracutlibdir %{_prefix}/lib/dracut
|
||||||
%bcond_without check
|
%bcond_without check
|
||||||
%global __cargo_skip_build 0
|
%global __cargo_skip_build 0
|
||||||
# The library is for internal code reuse and is not a public API
|
# The library is for internal code reuse and is not a public API
|
||||||
@ -8,7 +9,7 @@
|
|||||||
|
|
||||||
Name: rust-%{crate}
|
Name: rust-%{crate}
|
||||||
Version: 0.9.0
|
Version: 0.9.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Installer for Fedora CoreOS and RHEL CoreOS
|
Summary: Installer for Fedora CoreOS and RHEL CoreOS
|
||||||
|
|
||||||
# Upstream license specification: Apache-2.0
|
# Upstream license specification: Apache-2.0
|
||||||
@ -83,7 +84,7 @@ sed -i 's/"-Ccodegen-units=1",//' .cargo/config
|
|||||||
%install
|
%install
|
||||||
%cargo_install -f rdcore
|
%cargo_install -f rdcore
|
||||||
# Install binaries, dracut modules, units, targets, generators for running via systemd
|
# Install binaries, dracut modules, units, targets, generators for running via systemd
|
||||||
install -D -m 0755 -t %{buildroot}%{_libdir}/dracut/modules.d/50rdcore dracut/50rdcore/module-setup.sh
|
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/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-service
|
||||||
install -D -m 0755 -t %{buildroot}%{_libexecdir} scripts/coreos-installer-disable-device-auto-activation
|
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
|
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-disable-device-auto-activation.service
|
||||||
@ -94,7 +95,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.target
|
||||||
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-post.target
|
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-post.target
|
||||||
install -D -m 0755 -t %{buildroot}%{_systemdgeneratordir} systemd/coreos-installer-generator
|
install -D -m 0755 -t %{buildroot}%{_systemdgeneratordir} systemd/coreos-installer-generator
|
||||||
mv %{buildroot}%{_bindir}/rdcore %{buildroot}%{_libdir}/dracut/modules.d/50rdcore/
|
mv %{buildroot}%{_bindir}/rdcore %{buildroot}%{dracutlibdir}/modules.d/50rdcore/
|
||||||
|
|
||||||
%package -n %{crate}-bootinfra
|
%package -n %{crate}-bootinfra
|
||||||
Summary: %{crate} boot-time infrastructure for use on Fedora/RHEL CoreOS
|
Summary: %{crate} boot-time infrastructure for use on Fedora/RHEL CoreOS
|
||||||
@ -116,7 +117,7 @@ This subpackage contains boot-time infrastructure for Fedora CoreOS and
|
|||||||
RHEL CoreOS. It is not needed on other platforms.
|
RHEL CoreOS. It is not needed on other platforms.
|
||||||
|
|
||||||
%files -n %{crate}-bootinfra
|
%files -n %{crate}-bootinfra
|
||||||
%{_libdir}/dracut/modules.d/*
|
%{dracutlibdir}/modules.d/*
|
||||||
%{_libexecdir}/*
|
%{_libexecdir}/*
|
||||||
%{_unitdir}/*
|
%{_unitdir}/*
|
||||||
%{_systemdgeneratordir}/*
|
%{_systemdgeneratordir}/*
|
||||||
@ -127,6 +128,9 @@ RHEL CoreOS. It is not needed on other platforms.
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 08 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 0.9.0-2
|
||||||
|
- Fix dracut library path
|
||||||
|
|
||||||
* Thu Apr 08 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 0.9.0-1
|
* Thu Apr 08 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 0.9.0-1
|
||||||
- New release
|
- New release
|
||||||
- Fix hardcoded library path
|
- Fix hardcoded library path
|
||||||
|
Loading…
Reference in New Issue
Block a user