From a637ff4bd82472f74db4ddbd92bfab0923a6b52e Mon Sep 17 00:00:00 2001 From: Christian Glombek Date: Tue, 9 Aug 2022 16:08:58 +0200 Subject: [PATCH] Enable writing ssh keys fragments on RHEL/CentOS >= 9 https://issues.redhat.com/browse/COS-1589 --- ignition.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ignition.spec b/ignition.spec index df4e3ed..d2f8f3f 100644 --- a/ignition.spec +++ b/ignition.spec @@ -19,7 +19,7 @@ Version: 2.14.0 %global dracutlibdir %{_prefix}/lib/dracut Name: ignition -Release: 4%{?dist} +Release: 5%{?dist} Summary: First boot installer and configuration tool # Upstream license specification: Apache-2.0 @@ -249,9 +249,13 @@ engineering and uploaded to the Ignition GitHub releases page. %build export LDFLAGS="-X github.com/coreos/ignition/v2/internal/version.Raw=%{version} -X github.com/coreos/ignition/v2/internal/distro.selinuxRelabel=true " -%if 0%{?rhel} || 0%{?centos} +%if 0%{?rhel} && 0%{?rhel} <= 8 +# Disable writing ssh keys fragments on RHEL/CentOS <= 8 +LDFLAGS+=' -X github.com/coreos/ignition/v2/internal/distro.writeAuthorizedKeysFragment=false ' +%endif +%if 0%{?rhel} # Need uncompressed debug symbols for debuginfo extraction -LDFLAGS+=' -X github.com/coreos/ignition/v2/internal/distro.writeAuthorizedKeysFragment=false -compressdwarf=false ' +LDFLAGS+=' -compressdwarf=false ' %endif export GOFLAGS="-mod=vendor" @@ -339,6 +343,9 @@ install -p -m 0755 ./ignition %{buildroot}/%{dracutlibdir}/modules.d/30ignition %endif %changelog +* Tue Aug 9 2022 Christian Glombek - 2.14.0-5 +- Enable writing ssh keys fragments on RHEL/CentOS >= 9 + * Thu Jul 21 2022 Fedora Release Engineering - 2.14.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild