Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102015 - media-sound/alsa-utils alsasound init script does not fail if needed modules are not found
Summary: media-sound/alsa-utils alsasound init script does not fail if needed modules ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo ALSA team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-10 10:58 UTC by Petteri Räty (RETIRED)
Modified: 2007-02-18 14:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2005-08-10 10:58:23 UTC
Background:
After updating a kernel I sometimes forget to rebuild modules so when I boot I
have the alsa modules missing. 

Steps to reproduce:
1. /etc/init.d/alsasound stop (make sure that the modules are not loaded)
2. rm /lib/modules/<kernel>/alsa-driver/acore/snd.ko
3. /etc/init.d/alsasound start
4. /etc/init.d/alsasound status

Behaviour:
It gives a bunch of errors as expected but alsasounds status still reports
alsasound as started but it is most certain that sound is not working. 

Expected:
When one of the modules is missing the init script should stop executing and
report failure with for example return 1.
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2006-09-30 11:15:15 UTC
Still present in alsa-utils-1.0.12
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-01 21:54:03 UTC
The problem is that one might be using built-in static support for ALSA, which would break if we check modules presence.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-02-18 14:00:54 UTC
I've fixed it in 1.0.14_rc2-r1 without revbump, as I just added it yesterday, and this is a minor problem anyway.