All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: Failed to Create Symlinks ...
Date: Sun, 29 Nov 2009 19:04:41 +0000	[thread overview]
Message-ID: <ac3eb2510911291104o47ca4873u58f72df609017c84@mail.gmail.com> (raw)
In-Reply-To: <866c8f7a0911281452g2b8d95f7q4456d4428db66490@mail.gmail.com>

On Sat, Nov 28, 2009 at 23:52, Chris Dellin <cdellin@gmail.com> 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\x10
> E: MINOR\x175
> 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

  reply	other threads:[~2009-11-29 19:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-28 22:52 Failed to Create Symlinks Chris Dellin
2009-11-29 19:04 ` Kay Sievers [this message]
2009-11-29 19:15 ` Matthias Schwarzott
2009-11-29 19:20 ` Kay Sievers
2009-11-30 12:37 ` Kay Sievers
2009-11-30 14:03 ` Matthias Schwarzott
2009-11-30 14:08 ` Matthias Schwarzott
2009-11-30 15:39 ` Kay Sievers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ac3eb2510911291104o47ca4873u58f72df609017c84@mail.gmail.com \
    --to=kay.sievers@vrfy.org \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.