From: Herton R. Krzesinski herton@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@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
From: Jan Stancek on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1275#note_6345049...
Acked-by: Jan Stancek jstancek@redhat.com
From: Justin M. Forbes on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1275#note_6354245...
Acked-by: Justin M. Forbes jforbes@fedoraproject.org (via approve button)
kernel@lists.fedoraproject.org