Bug 91706
| Summary: | xfs freshening fails on preinstall script | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Raw Hide | Reporter: | Kaj J. Niemi <kajtzu> |
| Component: | XFree86 | Assignee: | Mike A. Harris <mharris> |
| Status: | CLOSED DUPLICATE | QA Contact: | David Lawrence <dkl> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 1.0 | ||
| 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: | 2006-02-21 18:53:16 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: | |||
*** This bug has been marked as a duplicate of 91822 *** Changed to 'CLOSED' state since 'RESOLVED' has been deprecated. |
From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030509 Description of problem: sudo rpm -Fvh XFree86-xfs-4.3.0-12.i386.rpm useradd: user xfs exists error: %pre(XFree86-xfs-4.3.0-12) scriptlet failed, exit status 9 error: install: %pre scriptlet failed (2), skipping XFree86-xfs-4.3.0-12 Seems like preinstall contains the following which fails if the user already exists returning an errorcode ... /usr/sbin/useradd -c "X Font Server" -r -s $LOGINSHELL -u 43 -d /etc/X11/fs xfs Version-Release number of selected component (if applicable): XFree86-xfs-4.3.0-12.i386.rpm How reproducible: Always Steps to Reproduce: 1. rpm -Fvh XFree86-xfs* 2. 3. Actual Results: Install process aborts Expected Results: Shouldn't abort even if user "xfs" exists already (which is the case with most systems) Additional info: The following would probably prevent the error condition (from the top of my head): /usr/sbin/useradd -c "X Font Server" -r -s $LOGINSHELL -u 43 -d /etc/X11/fs xfs 2> /dev/null || :