Matthew Burgess wrote:
> Hi folks,
> 
> This, from linux-hotplug-devel sounds quite encouraging.

Well, so much for my initramfs system...  ;-)  And I was getting close
to getting the hint text figured out, too.  Ah well, it happens, I
guess.

> At one point, trying to fake the environment to look like
> a real event was so silly, that I just added a "uevent" file
> to every kobject directory in /sys, which sends the netlink
> message again to udevd...
> That way, the whole coldplug is about 40 lines of shell
> script in the udev boot script on SUSE now. It just writes to
> every "uevent" file it finds, which will trigger the event to
> load modules, setup the device and create the device node
> at boot time. This script needs some improvement, but works
> nice for a first cut.

That definitely does sound much cleaner.  It's not exactly as "pure" as
storing the original events, but since the kernel code can regenerate
all the info anyway, IMO this way does make more sense.

>   /lib/udev/devices/
>      Real device nodes! Created with mknod, with the proper
>      permissions and ownership set. A bunch of symlinks and
>      nodes as a workaround for virtual devices or "broken"
>      kernel drivers. The whole content of this directory will
>      be copied over to the tmpfs mounted /dev at every boot
>      time.

Hey, this sounds like a good solution for the nvidia driver.  (It had to
remove its sysfs class kobjects, because that interface got changed to
EXPORT_SYMBOL_GPL.  So instead of registering kobjects in their kernel
driver, they ended up having their X driver create the device nodes
directly.  This way, they could just stick them into /lib/udev/devices
when the driver gets installed.)

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to