Bug 71522
| Summary: | Enh: have scripts check to see if kernel-source rpm is installed | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Ready Certification Tests | Reporter: | Glen A. Foster <glen.foster> |
| Component: | kernel | Assignee: | Chris Kloiber <ckloiber> |
| Status: | CLOSED NOTABUG | QA Contact: | Chris Kloiber <ckloiber> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 1.7 | CC: | hcp-admin |
| Target Milestone: | --- | Keywords: | FutureFeature |
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2002-08-14 18:31: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: | |||
One of the requirements for running the Red Hat Ready Certification tests is an "Everything" class install. This means kernel-source is assumed to be present. While adding a check for kernel-source would not hurt, it is not really needed. ... of course, it's not needed, which is why the summary started as "Enh:" (enhancement). Since enhancements are typically requests, can you re-close this bug as WONTFIX instead of NOTABUG, please? |
Description of Problem: It would aid/assist troubleshooting of the RHR scripts if, when looking for /usr/src/linux (or /usr/src/linux-2.4), the function locate_sources() in /etc/init.d/rhr_functions were patched as follows: # diff -u rhr_functions.ORIG rhr_functions --- rhr_functions.ORIG 2002-08-14 12:28:57.000000000 -0600 +++ rhr_functions 2002-08-14 12:31:48.000000000 -0600 @@ -314,7 +314,12 @@ SOURCEDIR="/usr/src/linux-2.4" echo -n "Located 2.4 kernel source tree..." else - action "Could not locate source tree." /bin/false + rpm -q kernel-source > /dev/null 2>&1 + if [ $? -ne 0 ]; then + action "No kernel-source rpm installed" /bin/false + else + action "Could not locate source tree." /bin/false + fi exit 1 fi } Version-Release number of selected component (if applicable): # rpm -qf /etc/init.d/rhr_functions rhr-core-1.7-10d