devfs
[Top] [All Lists]

[PATCH] devfsd - autodetect modutils/module-init-tools

To: devfs@xxxxxxxxxxx
Subject: [PATCH] devfsd - autodetect modutils/module-init-tools
From: Andrey Borzenkov <arvidjaar@xxxxxxx>
Date: Sun, 15 Jun 2003 20:01:08 +0400
In-reply-to: <Pine.LNX.4.55.0305051420370.1316@marabou.research.att.com>
References: <E19CYOW-00091k-00.arvidjaar-mail-ru@f6.mail.ru> <Pine.LNX.4.55.0305051420370.1316@marabou.research.att.com>
Sender: devfs-bounce@xxxxxxxxxxx
User-agent: KMail/1.5
modprobe from module-init-tools has a hack that replaces /etc/modules.devfs 
with /etc/modprobe.devfs if "module name" starts with "/dev". This hack does 
not work reliably, it is quite possible that modprobe will be called with 
"generic" name while resolving device (esp. as modprobe has very limited 
aliasing support so it is neccessary to use install with nested modprobe 
call).

This patch makes devfsd autodetect what tools are is use and use corr. 
modules.devfs or modprobe.devfs. It is using exactly the same check as 
modprobe to decide if it should fallback to modprobe.old (a.k.a. modutils). 
So far I had no evil from using it and it allows me to boot both 2.4 and 2.5 
without any problem (I did have problems booting 2.5 before).

It also allowed me to remove hack from modprobe. Hopefully it gets applied.

-andrey

Attachment: devfsd-1.3.25-kernel-2.5.patch.bz2
Description: BZip2 compressed data

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] devfsd - autodetect modutils/module-init-tools, Andrey Borzenkov <=