On some of my machines, I have an NFS RO-mounted /home. When the "filesystem" rpm attempts to update, it invariably fails with a low level cpio error, after it tried to do something or another to the NFS mount. Then rpm fails, without an indication of what actually is wrong or how to fix it. Please investigate if there is some way to improve the user experience here.
I'll try to check with rpm guys if it could be solved. Anyway - could you please specify that low level cpio error? TIA.
Additionally, could you please add information which way of update you have tried? Was it update via PackageKit , yum or simple rpm -U on downloaded rpm? Could you try other ways? TIA.
Sure, via yum: .... Installing : filesystem .... Error unpacking rpm package filesystem-2.4.30-2.fc12.x86_64 error: unpacking of archive failed on file /home: cpio: lsetfilecon Failed: filesystem.x86_64 ....
Discussed with rpm guy, we both tend to close this bugzilla NOTABUG. It is expected that rpm update should fail when one or more of the package files/dirs are not installed due to read only target filesystem. Any other behaviour could lead to incomplete package update, imagine package update on filesystem with read only /usr. Maybe error from rpm could be more comprehensive to allow user better address the issue. But this could be only suggested as RFE for rpm. Feel free to make a suggestion there.
You can try to unmount the said directory the the error. For example, if your error message shows like bellow error, then umount the /mnt directory which may be mounted by cdrom. error: unpacking of archive failed on file /mnt: cpio: lsetfilecon