From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Sun, 29 Nov 2009 19:04:41 +0000 Subject: Re: Failed to Create Symlinks ... Message-Id: List-Id: References: <866c8f7a0911281452g2b8d95f7q4456d4428db66490@mail.gmail.com> In-Reply-To: <866c8f7a0911281452g2b8d95f7q4456d4428db66490@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: linux-hotplug@vger.kernel.org On Sat, Nov 28, 2009 at 23:52, Chris Dellin wrote: > I'm having some trouble recently with my installation of udev.  I > expect it to create symlinks for a few devices, but no symlinks are > created.  For example: > > udev should create a symlink, as per the rule below: > $ grep agpgart /etc/udev/rules.d/50-udev.rules > KERNEL="agpgart", NAME="misc/%k", SYMLINK+="%k" > > However, on boot, no symlink exists (although the /dev/misc/agpgart > device is properly created). > > Once booted, the symlink does exist in the udev database: > # udevadm info --export-db | grep -A 8 'P: /devices/virtual/misc/agpgart' > P: /devices/virtual/misc/agpgart > N: misc/agpgart > S: agpgart > E: UDEV_LOG=3 > E: DEVPATH=/devices/virtual/misc/agpgart > E: MAJOR > E: MINOR5 > E: DEVNAME=/dev/misc/agpgart > E: DEVLINKS=/dev/agpgart > > I don't quite know how to interpret the results from udevtest, but the > results are here: > http://dellin.net/static/temp/udevtest_output.txt > > A few other notes: >  - The system is running a recent copy of Gentoo Linux. >  - This started happening when I upgraded my kernel from 2.6.29.5 to 2.6.31.6. >  - The /dev/video0 symlink has the same problem; it should be linked > to /dev/v4l/video0, which is created correctly. > > Any ideas? You should not swap kernel node names with symlink names. The primary name in /dev should always match the name in /sys. In general, on recent kernels, almost all rules with NAME= should be removed and the kernel-provided names not be overwritten by userspace config, and only symlinks (which do no clash with kernel names) added. Kay