placeholders are symlinks

This commit is contained in:
nazunalika 2022-04-13 09:46:28 -07:00
parent e6a27b7b5d
commit 6221c979a8
Signed by: label
GPG Key ID: 6735C0E1BD65D048

View File

@ -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 <label@rockylinux.org> - 9.0-1.8
* Tue Feb 08 2022 Louis Abel <label@rockylinux.org> - 9.0-1.9
- Backport current SB certs for now
- Add logrotate timer and switcheroo
- Add missing macros