From: Matthias Schwarzott <zzam@gentoo.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: Failed to Create Symlinks ...
Date: Sun, 29 Nov 2009 19:15:46 +0000 [thread overview]
Message-ID: <200911292015.47007.zzam@gentoo.org> (raw)
In-Reply-To: <866c8f7a0911281452g2b8d95f7q4456d4428db66490@mail.gmail.com>
On Sonntag, 29. November 2009, Kay Sievers wrote:
> 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.
>
I have a similar issue.
the lvm2 package on gentoo installs this udev rule:
KERNEL="device-mapper", SYMLINK+="mapper/control"
Now udev-147 cries about not being able to create the symlink as
kernel-provided name is already set to "mapper/control".
So is the only possibility to surpress this warning to adjust the rule to
this?
KERNEL="device-mapper", NAME="mapper/control"
Matthias
next prev parent reply other threads:[~2009-11-29 19:15 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
2009-11-29 19:15 ` Matthias Schwarzott [this message]
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=200911292015.47007.zzam@gentoo.org \
--to=zzam@gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).