Fix sign process

pull/1/head
Arkady L. Shane 1 year ago
parent 5b03356857
commit ea72bc08e1
Signed by: tigro
GPG Key ID: 9C7900103E1C4F8B

@ -14,6 +14,7 @@ MODPUBKEY=$2
moddir=$3 moddir=$3
modules=$(find "$moddir" -type f -name '*.ko') modules=$(find "$moddir" -type f -name '*.ko')
sign_file=$(find . -name 'sign-file')
NPROC=$(nproc) NPROC=$(nproc)
[ -z "$NPROC" ] && NPROC=1 [ -z "$NPROC" ] && NPROC=1
@ -21,7 +22,7 @@ NPROC=$(nproc)
# NB: this loop runs 2000+ iterations. Try to be fast. # NB: this loop runs 2000+ iterations. Try to be fast.
echo "$modules" | xargs -r -n16 -P $NPROC sh -c " echo "$modules" | xargs -r -n16 -P $NPROC sh -c "
for mod; do for mod; do
./scripts/sign-file sha256 $MODSECKEY $MODPUBKEY \$mod $sign_file sha256 $MODSECKEY $MODPUBKEY \$mod
rm -f \$mod.sig \$mod.dig rm -f \$mod.sig \$mod.dig
done done
" DUMMYARG0 # xargs appends ARG1 ARG2..., which go into $mod in for loop. " DUMMYARG0 # xargs appends ARG1 ARG2..., which go into $mod in for loop.

@ -55,13 +55,6 @@
%global signmodules 0 %global signmodules 0
%endif %endif
### BCAT
# Further investigation is required before these features
# are enabled for the ELRepo Project kernels.
%global signkernel 0
%global signmodules 0
### BCAT
# Compress modules on all architectures that build modules. # Compress modules on all architectures that build modules.
%ifarch x86_64 || aarch64 %ifarch x86_64 || aarch64
%global zipmodules 1 %global zipmodules 1
@ -712,7 +705,7 @@ popd > /dev/null
%define __modsign_install_post \ %define __modsign_install_post \
if [ "%{signmodules}" -eq "1" ]; then \ if [ "%{signmodules}" -eq "1" ]; then \
if [ "%{with_std}" -ne "0" ]; then \ if [ "%{with_std}" -ne "0" ]; then \
%{SOURCE21} certs/signing_key.pem.sign certs/signing_key.x509.sign $RPM_BUILD_ROOT/lib/modules/%{KVERREL}/ \ %{SOURCE21} linux-%{version}-%{release}.x86_64/certs/signing_key.pem.sign linux-%{version}-%{release}.x86_64/certs/signing_key.x509.sign $RPM_BUILD_ROOT/lib/modules/%{KVERREL}/ \
fi \ fi \
fi \ fi \
if [ "%{zipmodules}" -eq "1" ]; then \ if [ "%{zipmodules}" -eq "1" ]; then \
@ -1489,9 +1482,6 @@ fi
%kernel_lt_variant_files %{_use_vdso} %{with_std} %kernel_lt_variant_files %{_use_vdso} %{with_std}
%changelog %changelog
* Sun Nov 12 2023 Arkady L. Shane <ashejn@msvsphere.ru> - 6.1.62-1R.inferit
- Rebuilt for MSVSphere 9.2
* Sun Nov 12 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 6.1.62-1.inferit * Sun Nov 12 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 6.1.62-1.inferit
- Apply MSVSphere certs - Apply MSVSphere certs

Loading…
Cancel
Save