Bug 88296
| Summary: | trigger script incorrectly edits modules.conf | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Stew Smith <stew.smith> |
| Component: | kernel | Assignee: | Arjan van de Ven <arjanv> |
| Status: | CLOSED WONTFIX | QA Contact: | Brian Brock <bbrock> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 7.2 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2004-09-30 15:40:46 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: | |||
Thanks for the bug report. However, Red Hat no longer maintains this version of the product. Please upgrade to the latest version and open a new bug if the problem persists. The Fedora Legacy project (http://fedoralegacy.org/) maintains some older releases, and if you believe this bug is interesting to them, please report the problem in the bug tracker at: http://bugzilla.fedora.us/ |
Description of problem: kernel-2.4.spec contains a trigger script which will basically always edit modules.conf Version-Release number of selected component (if applicable): kernel-2.4.18-27.7.x.src.rpm How reproducible: install kernel rpms built from the above source rpm Actual results: the trigger is run everytime, so you get multiple "options i810 xfreeversion=41" entries in modules.conf Expected results: one entry of "options i810 xfreeversion=41" in modules.conf. Additional info: These (there are three) trigger scripts are the culprit: %triggerin smp -- XFree86 < 4.2 -cat /etc/modules.conf 2>/dev/null | grep -v xfreeversion > /dev/null && ( echo "options i810 xfreeversion=41" >> /etc/modules.conf ) || : Here is the change I made (remove -v from grep, make the echo an || condition: %triggerin smp -- XFree86 < 4.2 cat /etc/modules.conf 2>/dev/null | grep xfreeversion > /dev/null || ( echo "options i810 xfreeversion=41" >> /etc/modules.conf ) || : That way, it should only run if the string "xfreeversion" does not appear in the file.