Bug 632294 - install_initd fails on Required-Start: $local_fs
Summary: install_initd fails on Required-Start: $local_fs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: chkconfig
Version: 14
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 647200 (view as bug list)
Depends On: 508213
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-09 15:46 UTC by Bill Nottingham
Modified: 2014-03-17 03:24 UTC (History)
9 users (show)

Fixed In Version: chkconfig-1.3.48-1.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of: 508213
Environment:
Last Closed: 2010-11-01 20:51:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bill Nottingham 2010-09-09 15:46:24 UTC
I can confirm that this bug is still present in Fedora 13 and indeed it is a bug. Use the following script as a test (I have it at /etc/init.d/initTester):

#!/bin/sh
#
### BEGIN INIT INFO
# Provides:          initTester
# Required-Start:    $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Test script
### END INIT INFO


If you then use this script with install_initd it fails silently:

/usr/lib/lsb/install_initd /etc/init.d/initTester

HOWEVER, if you invoke chkconfig directly with the --add parameter, it DOES work:

/sbin/chkconfig --add /etc/init.d/initTester


After some testing, I can confirm that if you remove the Required-Start line, then install_initd does work. During my testing, all local file systems were successfully mounted, so the $local_fs service is indeed available and should be considered so by install_initd.

I don't seem to be able to re-open this bug, so could someone with the relevant permissions please do so? Cheers.

Comment 2 Bill Nottingham 2010-10-27 16:11:46 UTC
*** Bug 647200 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2010-10-27 16:29:07 UTC
chkconfig-1.3.48-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/chkconfig-1.3.48-1.fc14

Comment 4 Fedora Update System 2010-10-27 16:30:34 UTC
chkconfig-1.3.48-1.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/chkconfig-1.3.48-1.fc13

Comment 5 Fedora Update System 2010-10-28 05:42:39 UTC
chkconfig-1.3.48-1.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update chkconfig'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/chkconfig-1.3.48-1.fc13

Comment 6 Jason Corley 2010-10-28 13:45:01 UTC
Using this test file without values for Default-Start/Default-Stop I get a new error:

#!/bin/sh
#
### BEGIN INIT INFO
# Provides:          initTester
# Required-Start:    $local_fs
# Default-Start:     
# Default-Stop:      
# Short-Description: Test script
### END INIT INFO


# /usr/lib/lsb/install_initd /etc/init.d/initTester
service initTester does not support chkconfig
# echo $?
1

The LSB spec doesn't seem to require a value, so a blank Default-Start/Default-Stop should be equivalent to this chkconfig convention style comment:
# chkconfig - 50 50
if I'm reading things right.

Comment 7 Bill Nottingham 2010-10-28 15:23:09 UTC
That's a different bug; please file it separately.

Comment 8 Jason Corley 2010-10-28 15:41:40 UTC
done, filed as 647512

Comment 9 Fedora Update System 2010-11-01 20:51:39 UTC
chkconfig-1.3.48-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2010-11-01 20:57:55 UTC
chkconfig-1.3.48-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


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