Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365551 - Waiting for uevents hangs on rfkill0 after migration to baselayout2/openrc
Summary: Waiting for uevents hangs on rfkill0 after migration to baselayout2/openrc
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-01 13:16 UTC by charles17
Modified: 2013-03-13 22:35 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge_info,5.34 KB, text/plain)
2011-05-01 13:16 UTC, charles17
Details
Boot messages (boot.png,26.76 KB, image/png)
2011-05-01 13:17 UTC, charles17
Details
Kernel config (.config,59.09 KB, text/plain)
2011-05-01 13:21 UTC, charles17
Details

Note You need to log in before you can comment on or make changes to this bug.
Description charles17 2011-05-01 13:16:21 UTC
Created attachment 271741 [details]
emerge --info

Following the Baselayout and OpenRC Migration Guide[1] is straightforward but after reboot I am having problems with a one minute delay waiting for uevents being processed. The message is

udevadm settle - timeout of 60 seconds reached, the event queue contains
/sys/devices/pci0000:00/0000:00:1c.0/0000:08:00.0/ieee80211/phy0/rfkill0
/sys/devices/pci0000:00/0000:00:1c.0/0000:08:00.0/ieee80211/phy0/rfkill0
/sys/devices/pci0000:00/0000:00:1c.0/0000:08:00.0/ieee80211/phy0/rfkill0


[1]<http://www.gentoo.org/doc/en/openrc-migration.xml>
Comment 1 charles17 2011-05-01 13:17:18 UTC
Created attachment 271743 [details]
Boot messages
Comment 2 charles17 2011-05-01 13:21:09 UTC
Created attachment 271747 [details]
Kernel config
Comment 3 charles17 2011-05-09 15:09:16 UTC
After some testing and evaluation I found it is related to my rfkill script and udev rule:

/etc/udev/rfkill.sh
-------------------
#!/bin/bash
if [ "${RFKILL_STATE}" == 1 ]; then
	/etc/init.d/net.wlan0 start
	rc
else # state is 0 or 2
	/etc/init.d/net.wlan0 stop
fi


/etc/udev/rules.d/40-rfkill.rules
---------------------------------
SUBSYSTEM=="rfkill", ATTR{type}=="wlan", RUN+="/etc/udev/rfkill.sh"

Problem is still not solved :-(
Comment 4 Matthias Schwarzott gentoo-dev 2011-05-10 04:28:45 UTC
(In reply to comment #3)
> After some testing and evaluation I found it is related to my rfkill script and
> udev rule:
> 
> /etc/udev/rfkill.sh
> -------------------
> #!/bin/bash
> if [ "${RFKILL_STATE}" == 1 ]; then
>     /etc/init.d/net.wlan0 start
>     rc
> else # state is 0 or 2
>     /etc/init.d/net.wlan0 stop
> fi
> 
I suggest you have a look at how /lib/udev/net.sh runs init-scripts. Maybe setting IN_HOTPLUG does improve things for you?

I also think your udev rule is a bit generic. At how many different sysfs nodes does it match?
Comment 5 Christian Ruppert (idl0r) gentoo-dev 2011-09-18 16:57:29 UTC
Why do you call "rc" at all?
Comment 6 William Hubbs gentoo-dev 2013-02-15 22:51:18 UTC
There has been no activity in over a year on this bug.
Please upgrade to at least openrc-0.11.8 and udev-197-r8, then report
back to the bug and let us know whether or not you are still having
issues.