find $RPM_BUILD_ROOT/lib/modules/ -type f -name '*.ko' | xargs xz

Shorten each piped pathname so that fewer invocations of xz are required:
( cd $RPM_BUILD_ROOT/lib/modules/;  find . -type f -name '*.ko' | xargs xz )

--

Reply via email to