Bug 1889043 - rpm script for kernel-devel refers to non-existing /usr/sbin/hardlink program
Summary: rpm script for kernel-devel refers to non-existing /usr/sbin/hardlink program
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-17 06:40 UTC by Villy Kruse
Modified: 2021-05-08 01:34 UTC (History)
20 users (show)

Fixed In Version: kernel-5.11.18-100.fc32 kernel-5.11.18-200.fc33 kernel-5.11.18-300.fc34
Clone Of:
Environment:
Last Closed: 2021-04-29 21:05:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Villy Kruse 2020-10-17 06:40:28 UTC
1. Please describe the problem:

The hardlink lives in /usr/bin and not in user/sbin

$ rpm -q --scripts kernel-devel-5.8.15-201.fc32.x86_64
postinstall scriptlet (using /bin/sh):
if [ -f /etc/sysconfig/kernel ]
then
    . /etc/sysconfig/kernel || exit $?
fi
if [ "$HARDLINK" != "no" -a -x /usr/sbin/hardlink -a ! -e /run/ostree-booted ] 
then
    (cd /usr/src/kernels/5.8.15-201.fc32.x86_64 &&
     /usr/bin/find . -type f | while read f; do
       hardlink -c /usr/src/kernels/*.fc32.*/$f $f
     done)
fi

$ type hardlink
hardlink is /usr/bin/hardlink


2. What is the Version-Release number of the kernel:

util-linux-2.35.2-1.fc32.x86_64
kernel-devel-5.8.12-200.fc32.x86_64
kernel-devel-5.8.13-200.fc32.x86_64
kernel-devel-5.8.14-200.fc32.x86_64
kernel-devel-5.8.15-201.fc32.x86_64


3. Did it work previously in Fedora? If so, what kernel version did the issue
   *first* appear?  Old kernels are available for download at
   https://koji.fedoraproject.org/koji/packageinfo?packageID=8 :

It is not a problem with the kernel per se.  Just a little saving of disk space isn't working.

Comment 1 Fedora Program Management 2021-04-29 16:41:28 UTC
This message is a reminder that Fedora 32 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 32 on 2021-05-25.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '32'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 32 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Villy Kruse 2021-04-29 20:27:15 UTC
Still found issue in kernel-devel-5.11.15-300.fc34.x86_64

Comment 3 Justin M. Forbes 2021-04-29 21:05:45 UTC
Yeah, sorry about that, not sure how I missed the original bug coming in. hardlink was moved from it's own package to util-linux in 2019 and this has been broken since.  You are the first one who seems to have noticed. Fixed in git, and this should show up in 5.11.18 and newer kernels.  Thanks for finding it.

Comment 4 Villy Kruse 2021-04-30 06:05:06 UTC
(In reply to Justin M. Forbes from comment #3)
> Yeah, sorry about that, not sure how I missed the original bug coming in.
> hardlink was moved from it's own package to util-linux in 2019 and this has
> been broken since.  You are the first one who seems to have noticed. Fixed
> in git, and this should show up in 5.11.18 and newer kernels.  Thanks for
> finding it.

Maybe there were so many other bugs to take care of.  Some people may even be happy that it stopped working, as running the hardlinks is rather slow.

Comment 5 Fedora Update System 2021-05-04 12:20:25 UTC
FEDORA-2021-4c5bfbfea9 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-4c5bfbfea9

Comment 6 Fedora Update System 2021-05-04 12:20:27 UTC
FEDORA-2021-de12dbcbc8 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-de12dbcbc8

Comment 7 Fedora Update System 2021-05-04 12:20:28 UTC
FEDORA-2021-bbc2f07ed3 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2021-bbc2f07ed3

Comment 8 Fedora Update System 2021-05-05 01:28:08 UTC
FEDORA-2021-4c5bfbfea9 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-4c5bfbfea9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-4c5bfbfea9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2021-05-05 01:50:52 UTC
FEDORA-2021-de12dbcbc8 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-de12dbcbc8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-de12dbcbc8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2021-05-05 02:11:31 UTC
FEDORA-2021-bbc2f07ed3 has been pushed to the Fedora 32 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-bbc2f07ed3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-bbc2f07ed3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2021-05-08 01:10:16 UTC
FEDORA-2021-bbc2f07ed3 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2021-05-08 01:23:26 UTC
FEDORA-2021-4c5bfbfea9 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2021-05-08 01:34:02 UTC
FEDORA-2021-de12dbcbc8 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.