Red Hat Bugzilla – Bug 71522
Enh: have scripts check to see if kernel-source rpm is installed
Last modified: 2007-04-18 12:45:31 EDT
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
+ action "Could not locate source tree." /bin/false
Version-Release number of selected component (if applicable):
# rpm -qf /etc/init.d/rhr_functions
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?