Description of problem:
When a (non-RHEL) non-modular kernel is booted, "service --status-all" yields an error:
# service --status-all
libkmod: kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory
Error: could not get list of modules: No such file or directory
netconsole module not loaded
Currently active devices:
Source of the problem is in /etc/rc.d/init.d/netconsole, line 110, function status(): lsmod is executed without checking if /proc/modules exists beforehand.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. boot a non-modular kernel
2. # service --status-all
Created attachment 922237 [details]
adds a check for /proc/modules before the lsmod invocation in status()
At beginning I must note that we do not support non-RHEL kernels.
And also there should be something like
+ echo $"/proc/modules does not exists"
because otherwise you will get false return value.
But the main reason why I want to close this as notabug is that it yields that there is an error because there is one.