From aeada9e5340ab63ba9f730c3a44294a76064ea56 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 27 Jan 2025 08:19:31 -0500 Subject: [PATCH] packaging: Only enable kernel-install on f42+ and c10s To limit blast radius, ref https://bugzilla.redhat.com/show_bug.cgi?id=2342078 --- packaging/rpm-ostree.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packaging/rpm-ostree.spec b/packaging/rpm-ostree.spec index efef2b99fa..7ccd035c59 100644 --- a/packaging/rpm-ostree.spec +++ b/packaging/rpm-ostree.spec @@ -39,6 +39,12 @@ BuildRequires: rust %else %bcond_without ostree_ext %endif +# Integrate with kernel-install +%if 0%{?rhel} >= 10 || 0%{?fedora} > 41 + %bcond_with kernel_install +%else + %bcond_without kernel_install +%endif # This is copied from the libdnf spec %if 0%{?rhel} && ! 0%{?centos} @@ -218,6 +224,9 @@ sed -i -e '/https:\/\//d' cargo-vendor.txt %if %{without ostree_ext} rm -vrf $RPM_BUILD_ROOT/usr/libexec/libostree/ext %endif +%if %{without kernel_install} +rm -vr $RPM_BUILD_ROOT/usr/lib/kernel/install.d +%endif find $RPM_BUILD_ROOT -name '*.la' -delete # I try to do continuous delivery via rpmdistro-gitoverlay while