| Summary: | /etc/init.d/dkms_autoinstaller start won't work, misses /lib/lsb/init-functions | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Peter Bieringer <pb> |
| Component: | dkms | Assignee: | sunil <sunil_gupta2> |
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 15 | CC: | mario_limonciello, stefan.hoelldampf, sunil_gupta2, tcallawa |
| 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: | 2012-08-07 20:04:53 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Peter Bieringer
2011-05-29 10:22:37 UTC
The script calls the function log_daemon_msg which is declared as an alias of echo
if the same is changed to /bin/echo the command will run successfully.
the below patch corrects the error.
--- dkms_autoinstaller.orig 2011-05-30 20:52:56.997415589 +0530
+++ /etc/init.d/dkms_autoinstaller 2011-05-30 20:48:13.901417294 +0530
@@ -21,7 +21,7 @@
if [ -f /lib/lsb/init-functions ]; then
. /lib/lsb/init-functions
if [ ! -f /etc/debian_version ]; then
- alias log_daemon_msg=echo
+ alias log_daemon_msg=/bin/echo
log_end_msg() { if [ "$1" = "0" ]; then echo " Done. "; else echo " Failed. "; fi }
alias log_action_begin_msg=log_daemon_msg
alias log_action_end_msg=log_end_msg
Hope that resolves the bug.
The below patch will provide the version of kernel as well for which the dkms_autoinstaller is running.
--- dkms_autoinstaller.orig 2011-05-30 20:52:56.997415589 +0530
+++ /etc/init.d/dkms_autoinstaller 2011-05-30 21:36:46.523412299 +0530
@@ -15,13 +15,14 @@
# Description: A service to automatically install DKMS modules for new kernels.
### END INIT INFO
test -f /usr/sbin/dkms || exit 0
+kernel=`uname -r`
#We only have these functions on debian/ubuntu
# so on other distros just stub them out
if [ -f /lib/lsb/init-functions ]; then
. /lib/lsb/init-functions
if [ ! -f /etc/debian_version ]; then
- alias log_daemon_msg=echo
+ alias log_daemon_msg=/bin/echo
log_end_msg() { if [ "$1" = "0" ]; then echo " Done. "; else echo " Failed. "; fi }
alias log_action_begin_msg=log_daemon_msg
alias log_action_end_msg=log_end_msg
This message is a notice that Fedora 15 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 15. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At this time, all open bugs with a Fedora 'version' of '15' have been closed as WONTFIX. (Please note: Our normal process is to give advanced warning of this occurring, but we forgot to do that. A thousand apologies.) Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, feel free to reopen this bug and simply change the 'version' to a later Fedora version. Bug Reporter: Thank you for reporting this issue and we are sorry that we were unable to fix it before Fedora 15 reached end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" (top right of this page) and open it against that version of Fedora. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping |