From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Sat, 21 Feb 2004 00:35:26 +0000 Subject: Re: possible to mask nodes from being created ? Message-Id: <20040221003526.GC18146@kroah.com> List-Id: References: <200402191452.14645.vapier@gentoo.org> In-Reply-To: <200402191452.14645.vapier@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, Feb 19, 2004 at 02:52:08PM -0500, Mike Frysinger wrote: > i looked through the files in /etc/udev/ but wasnt able to figure out a way to > keep udev from creating nodes i'll never use ... > > for example, /dev/vc/ is populated with 64 nodes for the console and /dev/rd/ > is populated with 16 nodes for ramdisks ... personally i know i'm never going > to use 64 nodes for my console nor am i going to use 16 nodes for > ramdisks ... > > is there anyway for me to say 'only create tty[0-5]' or 'only create > ram[0-3]' ? note that even throwing them in subdirs and just not creating a > symlink isnt good enough in my book ;) Yes there is. Just make a rule that matches the devices that you do not want to have created and do not specify a NAME field (or give it a empty string.) Something like: KERNEL="tty[6-9]", NAME="" or just KERNEL="tty[6-9]" Hope this helps. greg k-h ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&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