Skip to contentSkip to conversation

udevd is not receiving events

DISCUSSION Marcos Dione 1 participant 1 message May 8, 2007

lore
Share & tools
lore
#0 lore raw

hi all. I'm setting up a thin client that load its root fs from nfs.
for that puporse, I compiled my own kernel that does not have any module (all compiled in-kernel) with my nic, nfs and nfsroot. that part works fine.

but then udevd stalls. I'm basing the nfsroot from a ubuntu dapper
system, which has udev 079. as anyone knows, udev doesn't create the system devices, so they must be replayed. under ubuntu that's done by udevplug, which echoes "add" into all the uevent files found under /sys. this should, but it does not, force udevd to create the proper devices. thing is, udev is not receiving them.

I ran all the /etc/init.d/rcS script under strace just to detect
that udevd sits waiting in a select (udevd.c:996), waiting froma a pipe, a unix socket and a netlink socket. none moves. I don't know exactly how those events are supposed to appear from that end, but I can infer they're not doing it.

my kernel has sysfs, unix sockets, support for hotplug devices (even
if I know that's not needed), tmpfs, networking (remember this is nfsroot!), but mostly it's a stripepd down kernel with only what I need.

so, what could be happening here? I almos lost all my hair here
trying to figure it out. first I thought it was inotify, which I didn't include at fisrt; it wasn't. then I tried to add this and that, but the kernel cannot grow to big because I'm booting from a diskette.

one thing I can tell is that yes, I hate initrd images, so I'm
working without them, so I'm not doing all the things ubuntu does in their initrd images. anyways, with udevplug -v I can see that al lthe righjt devices events are replayed, or tried to, but udevd still sits in the said select() call.

I don't know what else to include. I will appreciate any hint you
could give to me. TIA

Marcos.

--
Marcos Dione

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel