[Pkg-acpi-devel] Bug in initramfs-tools
martin f krafft
madduck at debian.org
Fri Nov 21 10:51:36 UTC 2008
reopen 426465
notfound 426465 module-init-tools/3.3-pre11-1
notfound 426465 3.3-pre11-1
reassign initramfs-tools
found 426465 0.87b
retitle 426465 /init exports MODPROBE_OPTIONS=-qb
severity 426465 critical
# justification: breaks unrelated software
block 426465 by 505440
thanks
initramfs exports MODPROBE_OPTIONS=-qb in /init. This puts it into
the environment of the entire system:
khyber:~# tr '\0' '\n' </proc/1/environ | grep MODPROBE_OPTIONS
MODPROBE_OPTIONS=-qb
Thanks to Tzafrir Cohen for figuring this out. This is also related
to #505440, which I recorded as a block.
As a result of this "environment leak", nothing can modprobe
blacklisted modules. acpid works around it by unsetting
MODPROBE_OPTIONS, but e.g. the watchdog package doesn't do that yet
(and *should not*).
If a module is listed in /etc/modprobe.d/blacklist, then it's not
supposed to be autoloaded by udev, but since MODPROBE_OPTIONS
includes -b, the init.d scripts also respect the blacklist.
khyber:~# grep w83627hf_wdt /etc/modprobe.d/blacklist /etc/default/watchdog
/etc/modprobe.d/blacklist:blacklist w83627hf_wdt
/etc/default/watchdog:watchdog_module="w83627hf_wdt"
Running /etc/init.d/watchdog start:
[...]
+ . /etc/default/watchdog
++ run_watchdog=1
++ watchdog_module=w83627hf_wdt
+ NAME=watchdog
+ DAEMON=/usr/sbin/watchdog
+ case "$1" in
+ '[' 1 = 1 ']'
+ '[' w83627hf_wdt '!=' none ']'
+ /sbin/modprobe w83627hf_wdt
WARNING: Not loading blacklisted module w83627hf_wdt
--
.''`. martin f. krafft <madduck at debian.org>
: :' : proud Debian developer, author, administrator, and user
`. `'` http://people.debian.org/~madduck - http://debiansystem.info
`- Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
Url : http://lists.alioth.debian.org/pipermail/pkg-acpi-devel/attachments/20081121/b2bbf914/attachment.pgp
More information about the Pkg-acpi-devel
mailing list