From 88ed14bd37f5a8b207c75e4e81e0096f7084f345 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Fri, 1 Dec 2023 07:54:25 +0530 Subject: [PATCH] use uname -m instead of uname -r --- kernel-common.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel-common.inc b/kernel-common.inc index 79ac562..b41289c 100644 --- a/kernel-common.inc +++ b/kernel-common.inc @@ -576,17 +576,17 @@ rm -vf .config* openssl x509 -inform der -in %{SOURCE100} -out rheldup3.pem openssl x509 -inform der -in %{SOURCE101} -out rhelkpatch1.pem cat rheldup3.pem rhelkpatch1.pem > certs/rhel.pem -for i in %{_sourcedir}/config-$(uname -r); do +for i in %{_sourcedir}/config-$(uname -m); do sed -i 's@CONFIG_SYSTEM_TRUSTED_KEYS="*"@CONFIG_SYSTEM_TRUSTED_KEYS="certs/rhel.pem"@' $i done %else -for i in %{_sourcedir}/config-$(uname -r); do +for i in %{_sourcedir}/config-$(uname -m); do sed -i 's@CONFIG_SYSTEM_TRUSTED_KEYS="*"@CONFIG_SYSTEM_TRUSTED_KEYS=""@' $i done %endif # Adjust the FIPS module name for RHEL9. -for i in %{_sourcedir}/config-$(uname -r); do +for i in %{_sourcedir}/config-$(uname -m); do sed -i 's@CONFIG_CRYPTO_FIPS_NAME=.*@CONFIG_CRYPTO_FIPS_NAME="Red Hat Enterprise Linux 9 - Kernel Cryptographic API"@' $i done @@ -598,7 +598,7 @@ popd > /dev/null pushd linux-%{KVERREL} > /dev/null %ifarch x86_64 || aarch64 -cp %{_sourcedir}/config-$(uname -r) .config +cp %{_sourcedir}/config-$(uname -m) .config %if %{signkernel} || %{signmodules} cp %{SOURCE23} certs/