Bug 50667 - %post scriplet fails if /usr is mounted ro
Summary: %post scriplet fails if /usr is mounted ro
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: glibc
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Aaron Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-08-01 22:43 UTC by Enrico Scholz
Modified: 2016-11-24 14:56 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-08-08 13:27:27 UTC
Embargoed:


Attachments (Terms of Use)

Description Enrico Scholz 2001-08-01 22:43:58 UTC
Description of Problem:

When having /usr mounted read-only and put into rpm's %_netsharedpath, the
%post scriplet of glibc fails at updating. This leads to an inconsistent
rpm database (two glibc's are installed).

Strace'ing the /usr/sbin/glibc_post_upgrade command says:

[pid 23439] open("/usr/lib/gconv/gconv-modules.cache",
O_RDWR|O_CREAT|O_TRUNC, 0644) = -1 EROFS (Read-only file system)
[pid 23439] _exit(1)                    = ?
<... wait4 resumed> [WIFEXITED(s) && WEXITSTATUS(s) == 1], 0, NULL) = 23439
--- SIGCHLD (Child exited) ---
_exit(1)                                = ?


How Reproducible:

everytime


Steps to Reproduce:
1. mount -o remount,ro
2. echo '%_netsharedpath /usr' >/etc/rpm/macros
3. rpm -U glibc-2.2.3-19.1
4. rpm -q glibc


Actual Results:

(3) execution of %post scriptlet from glibc-2.2.3-19.1 failed, exit status 1
(4) 
glibc-2.2.3-19
glibc-2.2.3-19.1


Expected Results:

(3) no message
(4) glibc-2.2.3-19.1


Additional Information:
	
tested with glibc-2.2.3-19.1 but happens with 2.2.3-19 also.

Comment 1 Glen Foster 2001-08-02 21:43:35 UTC
This defect is considered MUST-FIX for Fairfax

Comment 2 Jakub Jelinek 2001-08-06 20:29:27 UTC
Should be fixed in glibc-2.2.4-2.

Comment 3 Bill Nottingham 2001-08-23 13:19:19 UTC
Please reopen if this persists with that version or later.


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