--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: discover1: modules described in configuration should have '-' replaced by '_'
- From: Frederic Boiteux <fboiteux@calistel.com>
- Date: Mon, 19 Mar 2007 08:35:44 +0100
- Message-id: <20070319073544.3302.3518.reportbug@Prem1s.calistel.com>
Package: discover1
Version: 1.7.19
Severity: normal
Hello,
As I have a conflict with USB2 on my computer (see #376652), I have to
forbid the ehci-hcd module loading. At first, I had a rule in udev
configuration to avoid it, but it was always loaded. I found that
discover1 was loading it as udev didn't do it anymore, so I added a rule
in /etc/discover.conf :
skip ehci-hcd
But, when rebooting, I've noticed that discover reloaded it anyway. I've
done some debug inside the /etc/init.d/discover script to find that
module names given in configuration has to be written with underscores
('_') instead of dashes ('-') ! Even examples given in configuration
don't work :
# Don't load the i810-tco and i8xx-tco module by default:
skip i810-tco
skip i8xx-tco
To work, it should be written :
# Don't load the i810-tco and i8xx-tco module by default:
skip i810_tco
skip i8xx_tco
and my specific rule :
skip ehci_hcd
The script part responsible of this behaviour in /etc/init.d/discover is
:
MODULES=$(discover $DISCOVER_ARGS --module $TYPES | discover_uniq)
# Get rid of ide-scsi for kernels that don't need it. This is a horrible
# hack,
# but since we're retiring this version anyway I don't care
case "$KVERS" in
2.[0-4].*) true;;
*) MODULES=$(echo $MODULES | sed -e 's/ide-scsi //' -e 's/-/_/g');;
esac
The second rule of the 'sed' command change module names... Don't know
why... But this should be noted in the discover.conf man page and
perhaps even as a note in /etc/discover.conf.
With regards,
Fred.
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-dev
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)
Versions of packages discover1 depends on:
ii discover1-data 2.2007.02.02 Data lists for Discover hardware d
ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries
ii libdiscover1 1.7.19 hardware identification library
discover1 recommends no packages.
-- no debconf information
--- End Message ---