Skip to content

redhat/kernel.spec.template: fix standalone tools build

Building only tools: rpmbuild --rebuild --without doc --without cross_headers
--without kabidw_base --without debuginfo --without debug
--without up --without zfcpdump --without trace
--without bpftool --without selftests --without pae kernel.src.rpm

at the moment fails with: find: '/root/rpmbuild/BUILDROOT/kernel-5.18.0-0.rc6.47.test.el9.x86_64/lib/modules/': No such file or directory xz: Compressed data cannot be written to a terminal xz: Try `xz --help' for more information. error: Bad exit status from /var/tmp/rpm-tmp.EaolzQ (%install)

Add "-r" to xargs to skip compression if no modules are built.

Signed-off-by: Jerome Marchand jmarchan@redhat.com Signed-off-by: Jan Stancek jstancek@redhat.com

Merge request reports