[Bug 1019] New: Restore ALSA volumes reliably when udev is installed

blfs-bugs at linuxfromscratch.org blfs-bugs at linuxfromscratch.org
Sat Oct 16 00:21:58 PDT 2004


http://blfs-bugs.linuxfromscratch.org/show_bug.cgi?id=1019

           Summary: Restore ALSA volumes reliably when udev is installed
           Product: Beyond LinuxFromScratch
           Version: SVN
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: Bootscripts
        AssignedTo: blfs-book at linuxfromscratch.org
        ReportedBy: alexander at linuxfromscratch.org
         QAContact: blfs-book at linuxfromscratch.org


Problem: 
 
the ALSA initscript sometimes is started before udev creates nodes for ALSA 
soundcards present in the system, if their modules are loaded by the hotplug 
initscript. As a result, an ugly error message "No soundcards found" appears 
on the screen. And the device nodes appear just after that :( 
 
Official upstream recommendation: 
 
Use /etc/dev.d callback instead of the initscript to restore ALSA volumes. 
 
An example of such callback is provoded inside the udev tarball. However, the 
example is wrong. 
 
The provided example fails if the soundcard driver is not a module, and /usr 
is on the separate partition. More details: this callback is called from 
inside the udevstart binary from the udev initscript. /usr is not mounted at 
that point, that's why the callback scriptlet fails. 
 
We should develop an approach that works with all possible combinations of the 
following factors: 
 
1) Driver is / isn't a module loadable by hotplug 
2) /usr is / isn't a separate partition 
 
Side note: it seems that the only way to wait from the dev.d scriptlet 
for /usr to become mounted is by polling (spinning, sleeping and retrying) -- 
but the dev.d mechanism has been created just to avoid such polling. So the 
official upstream solution fails, and the dev.d callback gains nothing 
(instead of waiting for the device node we now wait for /usr). Feel free to 
prove that I am wrong. 
 
Of course, we can just declare all configurations with separate /usr as broken 
and unsupported, but that's probably not the best thing to do. 
 
If this bug is not fixed until 2004-12-01, it will be marked as "WONTFIX" here 
and transferred to LFS Bugzilla.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the QA contact for the bug, or are watching the QA contact.



More information about the blfs-book mailing list