diff --git a/.gitignore b/.gitignore index 5f43e53..7010a6e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -SOURCES/coreos-installer-0.11.0-vendor.tar.gz -SOURCES/coreos-installer-0.11.0.crate -SOURCES/coreos-installer-dracut-1a262bd.tar.gz +SOURCES/coreos-installer-0.16.1-vendor.tar.gz +SOURCES/coreos-installer-0.16.1.crate +SOURCES/coreos-installer-dracut-38d9f61.tar.gz diff --git a/.rust-coreos-installer.metadata b/.rust-coreos-installer.metadata index bbb06fd..6baba28 100644 --- a/.rust-coreos-installer.metadata +++ b/.rust-coreos-installer.metadata @@ -1,3 +1,3 @@ -2a876f160edceed577652d36f61c32b27e2bd734 SOURCES/coreos-installer-0.11.0-vendor.tar.gz -4ab40027b2ec1716b95a47090f750d7760c5bd90 SOURCES/coreos-installer-0.11.0.crate -01dc4e66374b6239963bfcf6d80724b0cddd7b75 SOURCES/coreos-installer-dracut-1a262bd.tar.gz +c5696c7f7e9da590855ec835e928f3f7e6303529 SOURCES/coreos-installer-0.16.1-vendor.tar.gz +51565a808a2349b49f5ef5f15be23d87313df146 SOURCES/coreos-installer-0.16.1.crate +5a36af3d6018cd244b9dad5b031d2a2c07529e34 SOURCES/coreos-installer-dracut-38d9f61.tar.gz diff --git a/SOURCES/disable-lto.patch b/SOURCES/disable-lto.patch deleted file mode 100644 index f709656..0000000 --- a/SOURCES/disable-lto.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- coreos-installer-0.11.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ coreos-installer-0.11.0/Cargo.toml 2021-12-15T20:16:00.065634+00:00 -@@ -39,7 +39,6 @@ - opt-level = 3 - - [profile.release] --lto = true - debug = true - - [lib] diff --git a/SOURCES/enable-rdcore.patch b/SOURCES/enable-rdcore.patch index 2352682..36a500f 100644 --- a/SOURCES/enable-rdcore.patch +++ b/SOURCES/enable-rdcore.patch @@ -1,10 +1,10 @@ ---- coreos-installer-0.11.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ coreos-installer-0.11.0/Cargo.toml 2021-12-15T20:13:31.152703+00:00 -@@ -139,6 +139,7 @@ - version = "^1.0" +--- a/Cargo2.toml 2022-09-21 11:19:37.605292726 -0400 ++++ b/Cargo.toml 2022-09-21 11:22:29.029020709 -0400 +@@ -194,6 +194,7 @@ [features] + docgen = ["clap_mangen"] +default = ["rdcore"] rdcore = [] + [target."cfg(target_arch = \"s390x\")".dependencies.mbrman] - version = ">= 0.3, < 0.5" diff --git a/SPECS/rust-coreos-installer.spec b/SPECS/rust-coreos-installer.spec index 9e2d566..3ed5cf4 100644 --- a/SPECS/rust-coreos-installer.spec +++ b/SPECS/rust-coreos-installer.spec @@ -1,18 +1,18 @@ -# Generated by rust2rpm 16 +# Originally generated by rust2rpm 16 %define dracutlibdir %{_prefix}/lib/dracut %bcond_without check %global __cargo_skip_build 0 # The library is for internal code reuse and is not a public API %global __cargo_is_lib 0 -%global dracutcommit 1a262bd9553ee0b3607b4d1982947a1fd6567c35 +%global dracutcommit 38d9f618cd6817ec7c1f1797b273d6f1f46852cb %global dracutshortcommit %(c=%{dracutcommit}; echo ${c:0:7}) %global crate coreos-installer Name: rust-%{crate} -Version: 0.11.0 -Release: 4%{?dist} +Version: 0.16.1 +Release: 1%{?dist} Summary: Installer for Fedora CoreOS and RHEL CoreOS # Upstream license specification: Apache-2.0 @@ -26,21 +26,18 @@ Source2: https://github.com/coreos/coreos-installer-dracut/archive/%{drac # The RHEL 8 rust-toolset macros don't let us enable features from the # %%cargo_* macros. Enable rdcore directly in Cargo.toml. Patch0: enable-rdcore.patch -# LTO causes runtime crashes on s390x -# https://github.com/coreos/coreos-installer/pull/360 -# https://github.com/coreos/coreos-installer/issues/372 -# https://bugzilla.redhat.com/show_bug.cgi?id=1863466 -Patch1: disable-lto.patch ExclusiveArch: %{rust_arches} %if 0%{?rhel} && !0%{?eln} BuildRequires: rust-toolset BuildRequires: openssl-devel +# To ensure we're not bundling system libraries BuildRequires: xz-devel %else BuildRequires: rust-packaging %endif BuildRequires: systemd-rpm-macros +BuildRequires: libzstd-devel # For tests BuildRequires: gnupg2 @@ -85,11 +82,6 @@ Obsoletes: coreos-installer-dracut < 0.0.1 %description -n %{crate} %{_description} -%files -n %{crate} -%license LICENSE -%doc README.md -%{_bindir}/coreos-installer - %prep %autosetup -n %{crate}-%{version} -p1 -a 2 %if 0%{?rhel} && !0%{?eln} @@ -123,33 +115,17 @@ sed -i 's/"-Ccodegen-units=1",//' .cargo/config %install %if 0%{?rhel} && !0%{?eln} -%make_install +%make_install RELEASE=1 # 51coreos-installer for coreos-installer-dracut -install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{dracutcommit}/dracut/51coreos-installer/module-setup.sh -install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{dracutcommit}/dracut/systemd/coreos-installer.target -install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{dracutcommit}/dracut/scripts/coreos-installer-service -install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{dracutcommit}/dracut/scripts/coreos-installer-growfs -install -D -m 0644 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{dracutcommit}/dracut/systemd/coreos-installer.service -install -D -m 0644 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{dracutcommit}/dracut/systemd/coreos-installer-growfs.service -install -D -m 0644 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{dracutcommit}/dracut/systemd/coreos-installer-luks-open.service -install -D -m 0644 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{dracutcommit}/dracut/systemd/coreos-installer-reboot.service -install -D -m 0644 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{dracutcommit}/dracut/systemd/coreos-installer-noreboot.service -install -D -m 0644 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{dracutcommit}/dracut/systemd/coreos-installer-poweroff.service -install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{dracutcommit}/dracut/systemd/coreos-installer-generator +%make_install -C coreos-installer-dracut-%{dracutcommit} %else %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} +make install-man DESTDIR=%{buildroot} +make install-data DESTDIR=%{buildroot} mv %{buildroot}%{_bindir}/rdcore %{buildroot}%{dracutlibdir}/modules.d/50rdcore/ %endif @@ -191,6 +167,14 @@ from the initramfs. %{dracutlibdir}/modules.d/51coreos-installer %endif +%files -n %{crate} +%license LICENSE +%doc README.md +%{_bindir}/coreos-installer +%{_mandir}/man8/* +%dir %{_datadir}/coreos-installer +%{_datadir}/coreos-installer/example-config.yaml + %if %{with check} %check %if 0%{?rhel} && !0%{?eln} @@ -201,6 +185,18 @@ from the initramfs. %endif %changelog +* Wed Sep 21 2022 Steven Presti - 0.16.1-1 +- new version +- Add libzstd dependency + +* Thu Aug 18 2022 Antonio Murdaca - 0.15.0-2 +- update coi-dracut to support LVM backed growfs service + +* Tue Jul 12 2022 Michael Armijo - 0.15.0-1 +- New release +- Sync with Fedora package +- Install coreos-installer-dracut with "make install" + * Thu Feb 24 2022 Antonio Murdaca - 0.11.0-4 - update coi-dracut to fix growfs service Before