Skip to content

Commit 53cdd29

Browse files
author
Herton R. Krzesinski
committed
Merge: redhat/kernel.spec.template: Parallelize compression
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/2065 Bugzilla: INTERNAL Upstream Status: RHEL only This fixes logic that does the parallel compression of modules during the rpm build. Signed-off-by: Herton R. Krzesinski <herton@redhat.com> Approved-by: Jarod Wilson <jarod@redhat.com> Approved-by: Jan Stancek <jstancek@redhat.com> Approved-by: Lucas Zampieri <lzampier@redhat.com> Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
2 parents f26957a + 96cabcf commit 53cdd29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

redhat/kernel.spec.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2610,7 +2610,8 @@ find Documentation -type d | xargs chmod u+w
26102610
fi \
26112611
fi \
26122612
if [ "%{zipmodules}" -eq "1" ]; then \
2613-
find $RPM_BUILD_ROOT/lib/modules/ -type f -name '*.ko' | xargs -P${RPM_BUILD_NCPUS} -r xz; \
2613+
echo "Compressing kernel modules ..." \
2614+
find $RPM_BUILD_ROOT/lib/modules/ -type f -name '*.ko' | xargs -n 16 -P${RPM_BUILD_NCPUS} -r xz; \
26142615
fi \
26152616
%{nil}
26162617

0 commit comments

Comments
 (0)