While deploying rpm 4.14.3-21.3.hsx.el8, we found out that hardlinks stopped working.
rpm 4.14.3-21.3.hsx.el8
The TL;DR is that since rpm GH#1534, files are being copied to a temporary location which is the actual filename with ;${tid} appended to it.
;${tid}
This broke with the following error:
error: reflink: Unable to hard link /foo/hello -> /foo/hello-bar;6207219c due to No such file or directory error: Plugin reflink: hook fsm_file_install failed error: unpacking of archive failed on file /foo/hello-bar;6207219c: cpio: (error 0x2) error: hlinktest-1.0-1.noarch: install failed
The fix is to get reflink to keep tab on the hardlink path vs the index, which we used to then fetch the file path from the header.
reflink
Here is the patch https://gist.github.com/chantra/261747b4aaed07a4f04e54be01f2b7a4
Metadata Update from @ngompa: - Issue tagged with: c8s
Fixed in https://git.centos.org/rpms/rpm/c/592a091deb736fc8c171c79b847da4fffe0ea574?branch=c8s-sig-hyperscale-experimental, built rpm 4.14.3-21.4.hsx.el8 with this change.
4.14.3-21.4.hsx.el8
Metadata Update from @chantra: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)