From: Luci Bot <fajita@xxxxxxxxxx> ol_signing_keys.pem is copied in certs directory Signed-off-by: Luci Bot <fajita@xxxxxxxxxx> Reviewed-by: Mark Nicholson <mark.j.nicholson@xxxxxxxxxx> --- ml-rpm/ol8/kernel-mainline.spec | 11 +++++++++++ ml-rpm/ol9/kernel-mainline.spec | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/ml-rpm/ol8/kernel-mainline.spec b/ml-rpm/ol8/kernel-mainline.spec index ed47eb0706a87..8487d522984a3 100644 --- a/ml-rpm/ol8/kernel-mainline.spec +++ b/ml-rpm/ol8/kernel-mainline.spec @@ -483,6 +483,7 @@ BuildConflicts: rpm < 4.13.0.1-19 Source0: linux-%{kversion}.tar.bz2 %if %{signkernel}%{signmodules} +Source9: ol_signing_keys.pem Source10: x509.genkey %endif @@ -1110,6 +1111,11 @@ BuildContainerKernel() { perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = ${ExtraVer}/" Makefile make %{?make_opts} mrproper + +%if %{signkernel}%{signmodules} + cp %{SOURCE10} %{SOURCE9} certs/. +%endif + cp configs/config-container .config make %{?make_opts} ARCH=$Arch %{?_kernel_cc} olddefconfig > /dev/null @@ -1159,6 +1165,11 @@ BuildKernel() { make %{?make_opts} mrproper +%if %{signkernel}%{signmodules} + cp %{SOURCE10} %{SOURCE9} certs/. +%endif + + %if %{signkernel}%{signmodules} cp %{SOURCE10} certs/. %endif diff --git a/ml-rpm/ol9/kernel-mainline.spec b/ml-rpm/ol9/kernel-mainline.spec index 0eb7d20043ed0..6a84976f01632 100644 --- a/ml-rpm/ol9/kernel-mainline.spec +++ b/ml-rpm/ol9/kernel-mainline.spec @@ -458,6 +458,7 @@ BuildConflicts: rpm < 4.13.0.1-19 Source0: linux-%{kversion}.tar.bz2 %if %{signkernel}%{signmodules} +Source9: ol_signing_keys.pem Source10: x509.genkey %endif @@ -1072,6 +1073,11 @@ BuildContainerKernel() { perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = ${ExtraVer}/" Makefile make %{?make_opts} mrproper + +%if %{signkernel}%{signmodules} + cp %{SOURCE10} %{SOURCE9} certs/. +%endif + cp configs/config-container .config make %{?make_opts} ARCH=$Arch %{?_kernel_cc} olddefconfig > /dev/null @@ -1121,6 +1127,11 @@ BuildKernel() { make %{?make_opts} mrproper +%if %{signkernel}%{signmodules} + cp %{SOURCE10} %{SOURCE9} certs/. +%endif + + %if %{signkernel}%{signmodules} cp %{SOURCE10} certs/. %endif -- 2.31.1