Bug 526368 - rpm updates fail for nfs-mounted directories
Summary: rpm updates fail for nfs-mounted directories
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: filesystem
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-09-30 01:21 UTC by Frank Ch. Eigler
Modified: 2019-09-05 03:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-30 12:32:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Frank Ch. Eigler 2009-09-30 01:21:27 UTC
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.

Comment 1 Ondrej Vasik 2009-09-30 06:50:17 UTC
I'll try to check with rpm guys if it could be solved. Anyway - could you please specify that low level cpio error? TIA.

Comment 2 Ondrej Vasik 2009-09-30 09:44:13 UTC
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.

Comment 3 Frank Ch. Eigler 2009-09-30 11:33:44 UTC
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 ....

Comment 4 Ondrej Vasik 2009-09-30 12:32:12 UTC
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.

Comment 5 Md. Meherab Ali 2019-09-05 03:13:35 UTC
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


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