Use make install
targets to install non-binary bits
We want to use `%cargo_install` for the main binary to match the use of `%cargo_build`, but for everything else let's just use the same dependent make targets.
This commit is contained in:
parent
78330a87bc
commit
ea43bf85e2
@ -124,16 +124,8 @@ install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer c
|
||||
%cargo_install -f rdcore
|
||||
# Install binaries, dracut modules, units, targets, generators for running via systemd
|
||||
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-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.service
|
||||
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-reboot.service
|
||||
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-noreboot.service
|
||||
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-pre.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 0755 -t %{buildroot}%{_systemdgeneratordir} systemd/coreos-installer-generator
|
||||
make install-scripts DESTDIR=%{buildroot}
|
||||
make install-systemd DESTDIR=%{buildroot}
|
||||
mv %{buildroot}%{_bindir}/rdcore %{buildroot}%{dracutlibdir}/modules.d/50rdcore/
|
||||
%endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user