First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 171295
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Mobile Herd <mobile@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Justin J. Snelgrove <broken_chaos@stormlord.ca>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ipw3945d Fixed /etc/modules.d/ipw3945d text/plain Justin J. Snelgrove 2007-03-17 23:45 0000 211 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 171295 depends on: Show dependency tree
Bug 171295 blocks: 197806
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-03-17 23:44 0000
During boot on a system with an ipw3945 and ipw3945d that has upgraded to
udev-104-r12 will have an ugly error printed out when the module is loaded due
to the initscript not being able to be run before the sysinit completes. This
is only a minor annoyance, as the everything works perfectly even with it (and
the error exists with any version of udev, it's just hidden prior to r12).

This was caused by changes to udev to make it work correctly with a silent
fbsplash screen, which actually made udev much more verbose in modprobe errors.
The solution is to modify the /etc/modules.d/ipw3945d file to redirect output
to /dev/null and return a successful exit code, no matter what. The downside is
that real errors will be missed, but that would happen anyway with old versions
of udev.

Tested on amd64 with ipw3945d-1.7.22-r4 with udev-104-r12. Without the fix, big
glaring error, ipw3945d autostarts in boot. With the fix, no visible error,
ipw3945d autostarts in boot. Same result either way, just no confusing error.

Modified /etc/modules.d/ipw3945d is attached.

------- Comment #1 From Justin J. Snelgrove 2007-03-17 23:45:25 0000 -------
Created an attachment (id=113610) [details]
Fixed /etc/modules.d/ipw3945d

------- Comment #2 From Matthias Schwarzott 2007-03-18 09:29:59 0000 -------
My suggestion is, to let udev call the init-script, that then gets started
along with the net and bluetooth init-scripts udev called at end of runlevel
boot.

Or isn't that possible?

------- Comment #3 From Justin J. Snelgrove 2007-03-18 18:11:56 0000 -------
The way I understand it, that would require some entirely new method of calling
it when a module is inserted/removed (probably meaning rather heavy changes to
either udev or baselayout), since this is currently called using plain old
modprobe - the initscripts are simply noting that it 'tried' to start, and then
starting it at the proper time in the boot runlevel.

Like I noted, this *is* a purely cosmetic error, since it has existed since
ipw3945d 1.7.22-r4 was introduced (the first revision where modprobe started
the daemon). The only reason this even shows up now is the recent changes to
udev for sending all output to the correct console (for silent fbsplash) caused
it to, seemingly inadvertently, become more verbose on modprobe errors. The
modprobe -q switch (which was added to when modprobe was run in modprobe.sh
from udev) only hides missing module errors, from what I tested, and not all
errors.

If there's an easier, or more proper way, to do this then someone is certainly
welcome to find it - but both looking at how udev handles module loading and
how modprobe works with ipw3945d, I found this to be the simplest, cleanest
solution. As well, from what I tested, it makes the lack of error reporting no
worse than when udev itself was hiding the output, instead of modprobe.

------- Comment #4 From hirakendu 2007-05-26 10:35:21 0000 -------
Cosmetic workaround for the moment :(. Right now I am using udev-111 (used to
give same ugly message), but instead using /lib/udev/modprobe.sh from
udev-104-r11 (just seems to sweep it under carpet as said ;-).

------- Comment #5 From Matthias Schwarzott 2007-09-27 11:48:37 0000 -------
I think (up to now masked) udev-115-r5 and later will solve this, as we
entirely deleted the modprobe-wrapper, and no longer redirect modprobe output
to console.

------- Comment #6 From Jan Kundrát 2007-12-05 17:01:49 0000 -------
Fixing per comment #5

First Last Prev Next    No search results available      Search page      Enter new bug