Bug 59494
Summary: | %pre scriptlet fails on ro-mounted /usr/share | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Enrico Scholz <rh-bugzilla> |
Component: | scrollkeeper | Assignee: | Havoc Pennington <hp> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.3 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-03-01 17:41:38 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 51193 | ||
Bug Blocks: |
Description
Enrico Scholz
2002-02-08 22:47:25 UTC
Not quite sure what you are working towards here, but of course the scriptlet failed. You have the filesystem mounted RO and the scriptlet is attempting to remove a directory on /usr/share. Even is the scriptlet didn't fail, the install of the package is going to fail, as there are a ton of files that it is going to try to write to the /usr/share/ filesystem. No; the installation itself works and only the scriptlet fails. rpm knows a %_netsharedpath variable which handles cases where parts of the filesystem are mounted RO (e.g. because they are shared by NFS). Then files located there will never be touched by rpm. Please see bug #51193 for a related discussion. I'm not sure how to fix this without ignoring legitimate errors - any suggestions? i.e. I don't really want to just say "rm foo || true" because it will potentially mask real problems. You could check if /usr/share/scrollkeeper is writable by you: | test -w /usr/share/scrollkeeper && { | rm -rf ... } Alternativily to the 'test -w ...' you can use the __isDirectoryShared macro defined in bug #51193. But this may be too much bloat for a simple 'rm -rf'; I can not imagine a problem which would not be detected in a later stage of rpm. Therefore, keep it small and simple, and make | rm -rf /usr/share/scrollkeeper 2>/dev/null || true Should be fixed in 0.3.4-3 |