Bug 708749 - /etc/init.d/dkms_autoinstaller start won't work, misses /lib/lsb/init-functions
Summary: /etc/init.d/dkms_autoinstaller start won't work, misses /lib/lsb/init-functions
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: dkms
Version: 15
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: sunil
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-29 10:22 UTC by Peter Bieringer
Modified: 2012-08-07 20:04 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-07 20:04:53 UTC
Type: ---


Attachments (Terms of Use)

Description Peter Bieringer 2011-05-29 10:22:37 UTC
Description of problem:

/etc/init.d/dkms_autoinstaller don't work, because it misses /lib/lsb/init-functions

Version-Release number of selected component (if applicable):
dkms-2.1.1.2-2.gitb66d7406.fc15.noarch

How reproducible:
Always

Steps to Reproduce:
# /etc/init.d/dkms_autoinstaller start

Actual results:
/etc/init.d/dkms_autoinstaller: Zeile 35: log_daemon_msg: command not foudd
/etc/init.d/dkms_autoinstaller: Zeile 37: log_end_msg: command not found


Expected results:
Working well

Additional info:

dkms misses redhat-lsb as dependency

Comment 1 sunil 2011-05-30 15:23:16 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.

Comment 2 sunil 2011-05-30 16:04:47 UTC
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

Comment 3 Fedora End Of Life 2012-08-07 20:04:56 UTC
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


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