[asterisk-bugs] [DAHDI-tools 0013910]: [patch] later debians: modprobe of blacklisted modules fails from init script

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Nov 24 13:28:17 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13910 
====================================================================== 
Reported By:                tzafrir
Assigned To:                jpeeler
====================================================================== 
Project:                    DAHDI-tools
Issue ID:                   13910
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     confirmed
====================================================================== 
Date Submitted:             2008-11-17 13:44 CST
Last Modified:              2008-11-24 13:28 CST
====================================================================== 
Summary:                    [patch] later debians: modprobe of blacklisted
modules fails from init script
Description: 
I believe hat this is a distribution bug (or maybe a feature), but I figure
DAHDI users will run into it and thus I prefer to at least document the
workaround.

It seems that in Debian Lenny (5.0) and probably also in some of the
latest versions of Ubuntu the init scripts are run with the environment
variable MODPROBE_OPTIONS set to -qb or -Qb . This means that modprobe will
silently fail to load any module that is listed as "blacklist" in the
modprobe configuration.

By default dahdi configures all the dahdi modules as blacklisted, to allow
strict control of their load order.

Possible workarounds:

1. in the 'start)' target of /etc/init.d/dahdi , unset this variable:

  unset MODPROBE_OPTIONS

2. If you don't have more than one dahdi device: don't blacklist the dahdi
modules.

3. Load the dahid modules in /etc/modules instead.

To test this, run the following command as root (checks the value of
MODPROBE_OPTIONS in the init process)

tr '\0' '\n' </proc/1/environ | grep ^MODPROBE_OPTIONS=

See also:

  http://bugs.debian.org/426465
  http://bugs.ubuntu.com/291619

A trivial patch is included here to implement (1) .
====================================================================== 

---------------------------------------------------------------------- 
 (0095395) blitzrage (administrator) - 2008-11-24 13:28
 http://bugs.digium.com/view.php?id=13910#c95395 
---------------------------------------------------------------------- 
I've assigned this to jpeeler for now to review. Please reassign as
appropriate. Thanks! 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-11-24 13:28 blitzrage      Note Added: 0095395                          
======================================================================




More information about the asterisk-bugs mailing list