On recent kernel updates with dnf, hundreds of messages appear in the terminal of the form:
hardlink: cannot link /usr/src/kernels/5.15.8-200.fc35.x86_64+debug/./sound/aoa/soundbus/Makefile to /usr/src/kernels/5.15.7-200.fc35.x86_64+debug/./sound/aoa/soundbus/Makefile.hardlink-temporary: File exists
hardlink: cannot link /usr/src/kernels/5.15.8-200.fc35.x86_64+debug/./sound/aoa/soundbus/Makefile to /usr/src/kernels/5.15.6-200.fc35.x86_64+debug/./sound/aoa/soundbus/Makefile.hardlink-temporary: File exists
hardlink: cannot link /usr/src/kernels/5.15.7-200.fc35.x86_64+debug/./sound/aoa/soundbus/Makefile to /usr/src/kernels/5.15.6-200.fc35.x86_64+debug/./sound/aoa/soundbus/Makefile.hardlink-temporary: File exists
No problems have been noticed. Is this normal, or is there something to investigate or resolve?
My experiences, it’s only happen if you install (kernel devel version, but not the cores kernel, kernel-core, kernel-modules, kernel-modules-extra) it from Fedora Bodhi or manually install from Koji or have previously installed from Fedora Bodhi or Koji.
If we always upgrade using dnf upgrade, at least with my experiences, that will not happened.
All fine. But saying all fine I think will not prove anything.
Btw we could download manually package with dnf download packagename.rpm or from koji. Then run rpm -qp --scripts ./packagename.rpm to see script pre or post install. Or we could go to package repo here and find *.spec file to see what really happen.
At least what happen to simplify it is like bellow image:
The touch file-3 is like local install. But of course I can be wrong.
Note: On kernel they use hardlink command instead ln.