Bug 71522 - Enh: have scripts check to see if kernel-source rpm is installed
Summary: Enh: have scripts check to see if kernel-source rpm is installed
Alias: None
Product: Red Hat Ready Certification Tests
Classification: Retired
Component: kernel (Show other bugs)
(Show other bugs)
Version: 1.7
Hardware: i386 Linux
Target Milestone: ---
Assignee: Chris Kloiber
QA Contact: Chris Kloiber
Keywords: FutureFeature
Depends On:
TreeView+ depends on / blocked
Reported: 2002-08-14 18:31 UTC by Glen A. Foster
Modified: 2007-04-18 16:45 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-08-14 18:31:46 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Glen A. Foster 2002-08-14 18:31:40 UTC
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 @@
                echo -n "Located 2.4 kernel source tree..."
-               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

Version-Release number of selected component (if applicable):
# rpm -qf /etc/init.d/rhr_functions

Comment 1 Chris Kloiber 2002-08-17 02:36:00 UTC
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.

Comment 2 Glen A. Foster 2002-08-19 15:47:14 UTC
... 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?

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