From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Mon, 26 Jan 2004 13:59:23 +0000 Subject: Re: udev.rules woes Message-Id: <20040126135923.GA10323@vrfy.org> List-Id: References: <20040123185637.GA2431@Benine> In-Reply-To: <20040123185637.GA2431@Benine> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, Jan 23, 2004 at 08:56:37PM +0200, Guido Schimmels wrote: > > To reproduce my static /dev with udev, I tried and replaced: > > BUS="ide", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom", > NAME="%k", SYMLINK="cdrom" > > with: > > BUS="ide", PROGRAM="/bin/cat /proc/ide/hdc/media", RESULT="cdrom", > NAME="hdc", SYMLINK="cdrom" > > Looks innocent enough, but triggers completely unexpected behaviour. > It makes __all__ IDE device nodes disappear, except /dev/hdc and /dev/ > cdrom symlinked to it. No, it doesn't look innocent, in any kind :) You ask for _every_ ide device "if hdc is a cdrom" and if yes please give it the name 'hdc'. The first rule matches every time. Why not stick with the provided example? It just works. If you want your own rules, you may add KERNEL= to the rule. thanks, Kay ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ 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