linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [OFFTOPIC] udev question
@ 2005-06-18  5:18 John Gatewood Ham
  2005-06-18  8:24 ` Kay Sievers
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: John Gatewood Ham @ 2005-06-18  5:18 UTC (permalink / raw)
  To: linux-hotplug

linux-hotplug-devel list,

The listed maintainer of udev requires I use this mailing list
for questions, even though my problem is with udev and not hotplug.
If you reply please cc: me since I am not a member of this list.
Here is the original message I sent to him:
--------------------8<  snip   8<-----------------------------
Hello,

     I upgraded from udev 0.54 to udev 0.58 and had many problems.
I finally tracked it down to my rules for /dev/null and /dev/zero.
These rules worked for 0.54:

SYSFS{dev}="1:3", NAME="null", OWNER="root", GROUP="root", MODE="0666"
SYSFS{dev}="1:5", NAME="zero", OWNER="root", GROUP="root", MODE="0666"

In 0.58 they create block mode device nodes, not character mode device
nodes, and that breaks many things, include portmapd and sshd.  After
much trail and error I came up with these rules that work with 0.58:

KERNEL="null", NAME="%k", OWNER="root", GROUP="root", MODE="0666"
KERNEL="zero", NAME="%k", OWNER="root", GROUP="root", MODE="0666"

I believe that somehow using SYSFS{dev} now assumes anything is
a block device instead of looking it up somehow (like KERNEL does).
Perhaps if the lookup is difficult or expensive, you could have
a way to specify block or character device?  Maybe there is a way to
sneak that into the MODE specification?  Or maybe not, but add this
to the FAQ?  Kernel 2.6.11.12 + gcc 3.3.6 + glibc-2.3.5/NPTL(no tls).
I use a custom distribution compiled from source and I mount a
ramdisk /dev on top of the real thing while running rc.S and
populate it with udevstart.  I did the upgrade to try and get xterm
working (later learned I have to manually set ptmx permissions in
the rules file and solved that issue).

I report this not as an error but as an issue that might be added
to the FAQ so other people don't suffer an entire night on this like I 
did.  Then again, maybe everybody else is smarter and finds these
answers faster.

Thanks,

JGH
-------------8<  snip 8<------------------------------------


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id\x16492&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-06-19  5:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-18  5:18 [OFFTOPIC] udev question John Gatewood Ham
2005-06-18  8:24 ` Kay Sievers
2005-06-18  8:55 ` John Gatewood Ham
2005-06-18  9:11 ` Kay Sievers
2005-06-19  5:17 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).