|
|
302623 |
# Generated by rust2rpm 13
|
|
|
302623 |
%define dracutlibdir %{_prefix}/lib/dracut
|
|
|
302623 |
%bcond_without check
|
|
|
302623 |
%global __cargo_skip_build 0
|
|
|
302623 |
# The library is for internal code reuse and is not a public API
|
|
|
302623 |
%global __cargo_is_lib 0
|
|
|
302623 |
|
|
|
302623 |
%global crate coreos-installer
|
|
|
302623 |
|
|
|
302623 |
Name: %{crate}
|
|
|
302623 |
Version: 0.9.1
|
|
|
302623 |
Release: 17%{?dist}
|
|
|
302623 |
Summary: Installer for Fedora CoreOS and RHEL CoreOS
|
|
|
302623 |
|
|
|
302623 |
# Upstream license specification: Apache-2.0
|
|
|
302623 |
License: ASL 2.0
|
|
|
302623 |
URL: https://github.com/fedora-iot/coreos-installer
|
|
|
302623 |
Source: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
302623 |
Source1: https://github.com/coreos/coreos-installer/releases/download/v%{version}/%{crate}-%{version}-vendor.tar.gz
|
|
|
302623 |
|
|
|
302623 |
# The RHEL 8 rust-toolset macros don't let us enable features from the
|
|
|
302623 |
# %%cargo_* macros. Enable rdcore directly in Cargo.toml.
|
|
|
302623 |
Patch0: enable-rdcore.patch
|
|
|
302623 |
# LTO causes runtime crashes on s390x
|
|
|
302623 |
# https://github.com/coreos/coreos-installer/pull/360
|
|
|
302623 |
# https://github.com/coreos/coreos-installer/issues/372
|
|
|
302623 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1863466
|
|
|
302623 |
Patch1: disable-lto-0.6.0.patch
|
|
|
302623 |
# Add coreos.force_persist_ip karg forwarding
|
|
|
302623 |
# https://github.com/coreos/coreos-installer/pull/554
|
|
|
302623 |
Patch2: force_persist_ip-0.9.1.patch
|
|
|
302623 |
# Support s390x DASDs in VMs via virtio
|
|
|
302623 |
# https://github.com/coreos/coreos-installer/pull/552
|
|
|
302623 |
Patch3: s390x-support-virtio-dasd-0.9.1.patch
|
|
|
302623 |
Patch4: coidracut.patch
|
|
|
302623 |
Patch5: coidracut2.patch
|
|
|
302623 |
Patch6: coidracut3.patch
|
|
|
302623 |
Patch7: coidracut4.patch
|
|
|
302623 |
Patch8: coidracut5.patch
|
|
|
302623 |
|
|
|
302623 |
ExclusiveArch: %{rust_arches}
|
|
|
302623 |
BuildRequires: openssl-devel
|
|
|
302623 |
BuildRequires: rust-toolset
|
|
|
302623 |
BuildRequires: systemd
|
|
|
302623 |
|
|
|
302623 |
Requires: gnupg
|
|
|
302623 |
Requires: kpartx
|
|
|
302623 |
Requires: systemd-udev
|
|
|
302623 |
Requires: util-linux
|
|
|
302623 |
%ifarch s390x
|
|
|
302623 |
# This should eventually be spelled "s390utils-core" but the binaries
|
|
|
302623 |
# haven't been broken out of s390utils-base yet
|
|
|
302623 |
Requires: /usr/sbin/chreipl
|
|
|
302623 |
Requires: /usr/sbin/dasdfmt
|
|
|
302623 |
Requires: /usr/sbin/fdasd
|
|
|
302623 |
Requires: /usr/sbin/lszdev
|
|
|
302623 |
Requires: /usr/sbin/zipl
|
|
|
302623 |
%endif
|
|
|
302623 |
|
|
|
302623 |
# Since `rust-coreos-installer` creates a `coreos-installer`
|
|
|
302623 |
# subpackage with a newer version number, which supersedes the
|
|
|
302623 |
# deprecated `coreos-installer` package (https://src.fedoraproject.org/rpms/coreos-installer),
|
|
|
302623 |
# an explicit `Obsoletes:` for `coreos-installer` is not necessary.
|
|
|
302623 |
|
|
|
302623 |
# Obsolete dracut modules as they are not provided in this package.
|
|
|
302623 |
Obsoletes: coreos-installer-dracut < 0.0.1
|
|
|
302623 |
|
|
|
302623 |
%global _description %{expand:
|
|
|
302623 |
coreos-installer installs Fedora CoreOS or RHEL CoreOS to bare-metal
|
|
|
302623 |
machines (or, occasionally, to virtual machines).
|
|
|
302623 |
}
|
|
|
302623 |
%description %{_description}
|
|
|
302623 |
|
|
|
302623 |
%files
|
|
|
302623 |
%license LICENSE
|
|
|
302623 |
%doc README.md
|
|
|
302623 |
%{_bindir}/coreos-installer
|
|
|
302623 |
|
|
|
302623 |
%prep
|
|
|
302623 |
%autosetup -n %{crate}-%{version} -p1
|
|
|
302623 |
%cargo_prep -V 1
|
|
|
302623 |
# https://github.com/rust-lang-nursery/error-chain/pull/289
|
|
|
302623 |
find -name '*.rs' -executable -exec chmod a-x {} \;
|
|
|
302623 |
|
|
|
302623 |
%build
|
|
|
302623 |
%cargo_build
|
|
|
302623 |
|
|
|
302623 |
%install
|
|
|
302623 |
%cargo_install
|
|
|
302623 |
# Install binaries, dracut modules, units, targets, generators for running via systemd
|
|
|
302623 |
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/50rdcore dracut/50rdcore/module-setup.sh
|
|
|
302623 |
install -D -m 0755 -t %{buildroot}%{_libexecdir} scripts/coreos-installer-service
|
|
|
302623 |
install -D -m 0755 -t %{buildroot}%{_libexecdir} scripts/coreos-installer-disable-device-auto-activation
|
|
|
302623 |
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-disable-device-auto-activation.service
|
|
|
302623 |
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer.service
|
|
|
302623 |
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-reboot.service
|
|
|
302623 |
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-noreboot.service
|
|
|
302623 |
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-pre.target
|
|
|
302623 |
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer.target
|
|
|
302623 |
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/coreos-installer-post.target
|
|
|
302623 |
install -D -m 0755 -t %{buildroot}%{_systemdgeneratordir} systemd/coreos-installer-generator
|
|
|
302623 |
mv %{buildroot}%{_bindir}/rdcore %{buildroot}%{dracutlibdir}/modules.d/50rdcore/
|
|
|
302623 |
cp -a %{buildroot}%{_bindir}/coreos-installer %{buildroot}%{dracutlibdir}/modules.d/50rdcore/
|
|
|
302623 |
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/50rdcore scripts/coreos-installer-service
|
|
|
302623 |
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/50rdcore scripts/growfs
|
|
|
302623 |
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/50rdcore scripts/coreos-installer-disable-device-auto-activation
|
|
|
302623 |
install -D -m 0644 -t %{buildroot}%{dracutlibdir}/modules.d/50rdcore systemd/coreos-installer-disable-device-auto-activation.service
|
|
|
302623 |
install -D -m 0644 -t %{buildroot}%{dracutlibdir}/modules.d/50rdcore systemd/coreos-installer.service
|
|
|
302623 |
install -D -m 0644 -t %{buildroot}%{dracutlibdir}/modules.d/50rdcore systemd/growfs.service
|
|
|
302623 |
install -D -m 0644 -t %{buildroot}%{dracutlibdir}/modules.d/50rdcore systemd/coreos-installer-reboot.service
|
|
|
302623 |
install -D -m 0644 -t %{buildroot}%{dracutlibdir}/modules.d/50rdcore systemd/coreos-installer-noreboot.service
|
|
|
302623 |
install -D -m 0644 -t %{buildroot}%{dracutlibdir}/modules.d/50rdcore systemd/coreos-installer-pre.target
|
|
|
302623 |
install -D -m 0644 -t %{buildroot}%{dracutlibdir}/modules.d/50rdcore systemd/coreos-installer.target
|
|
|
302623 |
install -D -m 0644 -t %{buildroot}%{dracutlibdir}/modules.d/50rdcore systemd/coreos-installer-post.target
|
|
|
302623 |
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/50rdcore systemd/coreos-installer-generator
|
|
|
302623 |
|
|
|
302623 |
%package -n %{crate}-bootinfra
|
|
|
302623 |
Summary: %{crate} boot-time infrastructure for use on Fedora/RHEL CoreOS
|
|
|
302623 |
Requires: %{crate} = %{version}-%{release}
|
|
|
302623 |
|
|
|
302623 |
# Package was renamed from coreos-installer-systemd when rdcore was added
|
|
|
302623 |
Provides: %{crate}-systemd = %{version}-%{release}
|
|
|
302623 |
Obsoletes: %{crate}-systemd <= 0.3.0-2
|
|
|
302623 |
|
|
|
302623 |
%description -n %{crate}-bootinfra
|
|
|
302623 |
This subpackage contains boot-time infrastructure for Fedora CoreOS and
|
|
|
302623 |
RHEL CoreOS. It is not needed on other platforms.
|
|
|
302623 |
|
|
|
302623 |
%files -n %{crate}-bootinfra
|
|
|
302623 |
%{dracutlibdir}/modules.d/*
|
|
|
302623 |
%{_libexecdir}/*
|
|
|
302623 |
%{_unitdir}/*
|
|
|
302623 |
%{_systemdgeneratordir}/*
|
|
|
302623 |
|
|
|
302623 |
%if %{with check}
|
|
|
302623 |
%check
|
|
|
302623 |
%cargo_test
|
|
|
302623 |
%endif
|
|
|
302623 |
|
|
|
302623 |
%changelog
|
|
|
302623 |
* Thu Jun 10 2021 Benjamin Gilbert <bgilbert@redhat.com> - 0.9.1-3
|
|
|
302623 |
- Support s390x DASDs in VMs via virtio
|
|
|
302623 |
|
|
|
302623 |
* Tue Jun 08 2021 Dusty Mabe <dustymabe@redhat.com> - 0.9.1-2
|
|
|
302623 |
- Add coreos.force_persist_ip karg forwarding
|
|
|
302623 |
|
|
|
302623 |
* Wed Apr 21 2021 Benjamin Gilbert <bgilbert@redhat.com> - 0.9.0-3
|
|
|
302623 |
- Improve error message for busy disk referenced via symlink
|
|
|
302623 |
- Fix failure on corrupt GPT
|
|
|
302623 |
|
|
|
302623 |
* Fri Apr 9 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 0.9.0-2
|
|
|
302623 |
- Use macro for dracut library path
|
|
|
302623 |
|
|
|
302623 |
* Thu Apr 8 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 0.9.0-1
|
|
|
302623 |
- New release
|
|
|
302623 |
|
|
|
302623 |
* Fri Jan 15 2021 Benjamin Gilbert <bgilbert@redhat.com> - 0.8.0-3
|
|
|
302623 |
- Fix rdcore rootmap on RAID devices
|
|
|
302623 |
|
|
|
302623 |
* Tue Jan 12 2021 Benjamin Gilbert <bgilbert@redhat.com> - 0.8.0-2
|
|
|
302623 |
- Disable LTO again to avoid crashes on s390x
|
|
|
302623 |
|
|
|
302623 |
* Tue Jan 12 2021 Sohan Kunkerkar <skunkerk@redhat.com> - 0.8.0-1
|
|
|
302623 |
- New release
|
|
|
302623 |
|
|
|
302623 |
* Mon Jan 04 2021 Benjamin Gilbert <bgilbert@redhat.com> - 0.7.2-2
|
|
|
302623 |
- Add Requires for programs invoked by coreos-installer
|
|
|
302623 |
- Require Rust >= 1.45, re-enable LTO
|
|
|
302623 |
|
|
|
302623 |
* Thu Oct 22 2020 Sohan Kunkerkar <skunkerk@redhat.com> - 0.7.2-1
|
|
|
302623 |
- New release
|
|
|
302623 |
|
|
|
302623 |
* Mon Sep 21 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.6.0-3
|
|
|
302623 |
- Fix MBR handling when partition saving is enabled
|
|
|
302623 |
- Fix base package Obsoletes being interpreted as part of package description
|
|
|
302623 |
|
|
|
302623 |
* Wed Sep 02 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.6.0-2
|
|
|
302623 |
- Disable LTO on s390x to avoid runtime crashes
|
|
|
302623 |
- Drop legacy installer
|
|
|
302623 |
|
|
|
302623 |
* Tue Aug 25 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.6.0-1
|
|
|
302623 |
- New release
|
|
|
302623 |
|
|
|
302623 |
* Fri Jul 31 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.5.0-1
|
|
|
302623 |
- New release
|
|
|
302623 |
|
|
|
302623 |
* Sat Jul 25 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.4.0-1
|
|
|
302623 |
- New release
|
|
|
302623 |
- Rename -systemd subpackage to -bootinfra
|
|
|
302623 |
- Add rdcore Dracut module to -bootinfra
|
|
|
302623 |
|
|
|
302623 |
* Wed Jul 22 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.3.0-1
|
|
|
302623 |
- New release
|
|
|
302623 |
- Make coreos-installer-{service,generator} world-readable
|
|
|
302623 |
|
|
|
302623 |
* Wed Jun 17 2020 Dusty Mabe <dusty@dustymabe.com> - 0.2.0-4.rhaos4.6
|
|
|
302623 |
- Include rhaos4.6 in the rpm release field
|
|
|
302623 |
|
|
|
302623 |
* Thu May 28 2020 Colin Walters <walters@verbum.org> - 0.2.0-3
|
|
|
302623 |
- Backport osmet RHCOS+LUKS patches
|
|
|
302623 |
|
|
|
302623 |
* Thu May 07 2020 Dusty Mabe <dusty@dustymabe.com> - 0.2.0-2
|
|
|
302623 |
- Fix bug in dracut hook in legacy installer; see
|
|
|
302623 |
https://github.com/coreos/coreos-installer/pull/234
|
|
|
302623 |
|
|
|
302623 |
* Mon Apr 27 2020 Colin Walters <walters@verbum.org> - 0.1.3-4
|
|
|
302623 |
- Merge in legacy installer; see
|
|
|
302623 |
https://github.com/coreos/coreos-installer/pull/220
|
|
|
302623 |
|
|
|
302623 |
* Mon Mar 23 2020 Colin Walters <walters@verbum.org> - 0.1.3-2
|
|
|
302623 |
- https://github.com/coreos/coreos-installer/releases/tag/v0.1.3
|
|
|
302623 |
|
|
|
302623 |
* Wed Mar 04 2020 Colin Walters <walters@verbum.org> - 0.1.2-11
|
|
|
302623 |
- Backport no-signatures-available patch
|
|
|
302623 |
|
|
|
302623 |
* Wed Feb 26 2020 Colin Walters <walters@verbum.org> - 0.1.2-10
|
|
|
302623 |
- Forked from Fedora
|
|
|
302623 |
- I forgot about the weird `rust-` package name prefixing when
|
|
|
302623 |
asking RCM to make the dist-git repo, and rather than redo
|
|
|
302623 |
that I decided to just go with it.
|
|
|
302623 |
- Stop depending on systemd-rpm-macros since it's not in RHEL8 apparently
|
|
|
302623 |
- Drop other things only applicable to Fedora Rust packaging like
|
|
|
302623 |
dynamic buildrequires
|