From 6221c979a8c9bc22ba8e982c1415e82d44910a4a Mon Sep 17 00:00:00 2001 From: nazunalika Date: Wed, 13 Apr 2022 09:46:28 -0700 Subject: [PATCH] placeholders are symlinks --- SPECS/rocky-release.spec | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/SPECS/rocky-release.spec b/SPECS/rocky-release.spec index 37caf7a..910dfdd 100644 --- a/SPECS/rocky-release.spec +++ b/SPECS/rocky-release.spec @@ -16,7 +16,7 @@ %define distro_code Blue Onyx %define major 9 %define minor 0 -%define rocky_rel 1%{?rllh:.%{rllh}}%{!?rllh:.8} +%define rocky_rel 1%{?rllh:.%{rllh}}%{!?rllh:.9} %define rpm_license BSD-3-Clause %define dist .el%{major} @@ -301,20 +301,21 @@ install -m 0644 %{SOURCE1401} %{buildroot}%{_datadir}/pki/sb-certs/ install -m 0644 %{SOURCE1402} %{buildroot}%{_datadir}/pki/sb-certs/ install -m 0644 %{SOURCE1403} %{buildroot}%{_datadir}/pki/sb-certs/ +# Placeholders # x86_64 -echo "placeholder" > %{buildroot}%{_datadir}/pki/sb-certs/secureboot-ca-x86_64.crt +ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-root-ca.der %{buildroot}%{_datadir}/pki/sb-certs/secureboot-ca-x86_64.crt # aarch64 -echo "placeholder" > %{buildroot}%{_datadir}/pki/sb-certs/secureboot-ca-aarch64.crt +ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-root-ca.der %{buildroot}%{_datadir}/pki/sb-certs/secureboot-ca-aarch64.crt # ppc64le -echo "placeholder" > %{buildroot}%{_datadir}/pki/sb-certs/secureboot-ca-ppc64le.crt +ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-root-ca.der %{buildroot}%{_datadir}/pki/sb-certs/secureboot-ca-ppc64le.crt # armhfp -echo "placeholder" > %{buildroot}%{_datadir}/pki/sb-certs/secureboot-ca-armhfp.crt +ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-root-ca.der %{buildroot}%{_datadir}/pki/sb-certs/secureboot-ca-armhfp.crt # s390x -echo "placeholder" > %{buildroot}%{_datadir}/pki/sb-certs/secureboot-ca-s390x.crt +ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-root-ca.der %{buildroot}%{_datadir}/pki/sb-certs/secureboot-ca-s390x.crt # symlinks for everybody for x in $(ls %{buildroot}%{_datadir}/pki/sb-certs); do @@ -406,7 +407,7 @@ install -m 0644 %{SOURCE404} %{buildroot}/%{_prefix}/lib/sysctl.d/50-redhat.conf %{_datadir}/pki/sb-certs/*.crt %changelog -* Tue Feb 08 2022 Louis Abel - 9.0-1.8 +* Tue Feb 08 2022 Louis Abel - 9.0-1.9 - Backport current SB certs for now - Add logrotate timer and switcheroo - Add missing macros