From: Herton R. Krzesinski <herton(a)redhat.com>
rpmspec: fix verbose output on kernel-devel installation
Bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1981406
The current hardlink implementation that is available on latest
util-linux versions (at least >= 2.37) is verbose by default. Thus
lots of output is printed when hardlink runs at the kernel-devel
install with newer hardlink versions. Avoid that by redirecting
the output to /dev/null. I also could use the -q option, but that
may not be available with hardlink versions eg. on older stable Fedora
versions where current kernels might still be built for them, so the
redirection seems the safest approach.
Signed-off-by: Herton R. Krzesinski <herton(a)redhat.com>
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index blahblah..blahblah 100755
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -2592,7 +2592,7 @@ if [ "$HARDLINK" != "no" -a -x /usr/bin/hardlink
-a ! -e /run/ostree-booted ] \
then\
(cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\
/usr/bin/find . -type f | while read f; do\
- hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f\
+ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\
done)\
fi\
%{nil}
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1275