* How to correct udev rules that generate errors with udev 100
@ 2006-09-13 23:28 Miles Lane
2006-09-13 23:29 ` Kay Sievers
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Miles Lane @ 2006-09-13 23:28 UTC (permalink / raw)
To: linux-hotplug
I am running Ubuntu's development repository. It currently has udev 079,
but I upgraded to udev 100 recently. udev 079 doesn't work correctly with
AKPM's latest kernel tree, which I test. After upgrading to udev 100, I get
the following:
Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: invalid KERNEL operation
Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: invalid rule
'/etc/udev/rules.d/40-permissions.rules:40'
From the file:
[...]
SUBSYSTEM="usb", KERNEL="lp[0-9]*", GROUP="lp"
KERNEL="pt[0-9]*", GROUP="tape"
KERNEL="pht[0-9]*", GROUP="tape"
[...]
KERNEL="nvram", GROUP="nvram"
Sep 13 15:18:30 localhost udevd[5973]: lookup_group: specified group
unknown 'nvram'
Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: unknown key
'MODALIAS' in /etc/udev/rules.d/60-pcmcia.rules:4
Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: unknown key
'MODALIAS' in /etc/udev/rules.d/60-pcmcia.rules:10
Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: unknown key
'MODALIAS' in /etc/udev/rules.d/60-pcmcia.rules:14
For example:
ACTION="add", SUBSYSTEM="pcmcia", MODALIAS="?*", \
RUN+="/sbin/modprobe $modalias"
Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: invalid ACTION operation
Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: invalid rule
'/etc/udev/rules.d/85-hal.rules:5'
SUBSYSTEM="block",ACTION="remove", RUN+="/usr/lib/hal/hal-unmount.sh"
Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: unknown key
'MODALIAS' in /etc/udev/rules.d/85-pcmcia.rules:8
Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: unknown key
'MODALIAS' in /etc/udev/rules.d/85-pcmcia.rules:12
Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: invalid KERNEL operation
Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: invalid rule
'/etc/udev/rules.d/z60_usbmount.rules:3'
Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: invalid KERNEL operation
Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: invalid rule
'/etc/udev/rules.d/z60_usbmount.rules:4'
Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: invalid KERNEL operation
Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: invalid rule
'/etc/udev/rules.d/z60_usbmount.rules:5'
Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: invalid KERNEL operation
Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: invalid rule
'/etc/udev/rules.d/z60_usbmount.rules:6'
KERNEL="sd*", BUS="usb", ACTION="add",
RUN+="/usr/share/usbmount/usbmount add"
KERNEL="ub*", BUS="usb", ACTION="add",
RUN+="/usr/share/usbmount/usbmount add"
KERNEL="sd*", ACTION="remove",
RUN+="/usr/share/usbmount/usbmount remove"
KERNEL="ub*", ACTION="remove",
RUN+="/usr/share/usbmount/usbmount remove"
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to correct udev rules that generate errors with udev 100
2006-09-13 23:28 How to correct udev rules that generate errors with udev 100 Miles Lane
@ 2006-09-13 23:29 ` Kay Sievers
2006-09-14 0:21 ` Miles Lane
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Kay Sievers @ 2006-09-13 23:29 UTC (permalink / raw)
To: linux-hotplug
On Wed, 2006-09-13 at 16:28 -0700, Miles Lane wrote:
> I am running Ubuntu's development repository. It currently has udev 079,
> but I upgraded to udev 100 recently. udev 079 doesn't work correctly with
> AKPM's latest kernel tree, which I test. After upgrading to udev 100, I get
> the following:
>
> Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: invalid KERNEL operation
> Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: invalid rule
> '/etc/udev/rules.d/40-permissions.rules:40'
>
> >From the file:
> [...]
> SUBSYSTEM="usb", KERNEL="lp[0-9]*", GROUP="lp"
KERNEL= instead of KERNEL= should do it.
Kay
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to correct udev rules that generate errors with udev 100
2006-09-13 23:28 How to correct udev rules that generate errors with udev 100 Miles Lane
2006-09-13 23:29 ` Kay Sievers
@ 2006-09-14 0:21 ` Miles Lane
2006-09-14 0:41 ` Bryan Kadzban
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Miles Lane @ 2006-09-14 0:21 UTC (permalink / raw)
To: linux-hotplug
On 9/13/06, Kay Sievers <kay.sievers@vrfy.org> wrote:
> On Wed, 2006-09-13 at 16:28 -0700, Miles Lane wrote:
> > I am running Ubuntu's development repository. It currently has udev 079,
> > but I upgraded to udev 100 recently. udev 079 doesn't work correctly with
> > AKPM's latest kernel tree, which I test. After upgrading to udev 100, I get
> > the following:
> >
> > Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: invalid KERNEL operation
> > Sep 13 15:18:30 localhost udevd[5973]: add_to_rules: invalid rule
> > '/etc/udev/rules.d/40-permissions.rules:40'
> >
> > >From the file:
> > [...]
> > SUBSYSTEM="usb", KERNEL="lp[0-9]*", GROUP="lp"
>
> KERNEL= instead of KERNEL= should do it.
Thanks! After fixing the faulty KERNEL operators, I get these:
Sep 13 17:00:50 localhost kernel: [udevd:3971]: Changing netdevice
name from [eth0] to [eth1]
Sep 13 17:00:50 localhost kernel: [udevd:3971]: Changing netdevice
name from [eth0] to [eth0_rename]
Sep 13 17:00:50 localhost kernel: [udevd:3971]: Changing netdevice
name from [eth0_rename] to [eth1]
Sep 13 17:00:50 localhost kernel: [udevd:3976]: Changing netdevice
name from [eth1] to [eth0]
Sep 13 17:00:50 localhost kernel: [udevd:3971]: Changing netdevice
name from [eth0_rename] to [eth1]
Any idea why udev would be changing the netdevice names?
Miles
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to correct udev rules that generate errors with udev 100
2006-09-13 23:28 How to correct udev rules that generate errors with udev 100 Miles Lane
2006-09-13 23:29 ` Kay Sievers
2006-09-14 0:21 ` Miles Lane
@ 2006-09-14 0:41 ` Bryan Kadzban
2006-09-14 1:08 ` Miles Lane
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Bryan Kadzban @ 2006-09-14 0:41 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1.1: Type: text/plain, Size: 482 bytes --]
Miles Lane wrote:
> Any idea why udev would be changing the netdevice names?
Because you have a rule that names the NIC by either MAC address or
physical (bus) location, would be my guess. ;-) It looks like udevd
is trying to swap names, so your kernel probably detected the devices
in the opposite order from what your rules say they should be named.
(You may not even know about this rule; it may have been generated by
another rule-generating rule that Ubuntu put in place.)
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 258 bytes --]
[-- Attachment #2: Type: text/plain, Size: 373 bytes --]
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
[-- Attachment #3: Type: text/plain, Size: 226 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to correct udev rules that generate errors with udev 100
2006-09-13 23:28 How to correct udev rules that generate errors with udev 100 Miles Lane
` (2 preceding siblings ...)
2006-09-14 0:41 ` Bryan Kadzban
@ 2006-09-14 1:08 ` Miles Lane
2006-09-14 3:06 ` Bryan Kadzban
2006-09-14 7:00 ` Scott James Remnant
5 siblings, 0 replies; 7+ messages in thread
From: Miles Lane @ 2006-09-14 1:08 UTC (permalink / raw)
To: linux-hotplug
On 9/13/06, Bryan Kadzban <bryan@kadzban.is-a-geek.net> wrote:
> Miles Lane wrote:
> > Any idea why udev would be changing the netdevice names?
>
> Because you have a rule that names the NIC by either MAC address or
> physical (bus) location, would be my guess. ;-) It looks like udevd
> is trying to swap names, so your kernel probably detected the devices
> in the opposite order from what your rules say they should be named.
>
> (You may not even know about this rule; it may have been generated by
> another rule-generating rule that Ubuntu put in place.)
Ah, I am testing Andrew Morton's 2.6.18-rc6-mm2 tree. One of the
patches in this tree makes device detection run mutlithreaded.
One of the outcomes is that detection order can differ from the
one in serialized detection. Perhaps this is the reason for these
messages.
Thanks,
Miles
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to correct udev rules that generate errors with udev 100
2006-09-13 23:28 How to correct udev rules that generate errors with udev 100 Miles Lane
` (3 preceding siblings ...)
2006-09-14 1:08 ` Miles Lane
@ 2006-09-14 3:06 ` Bryan Kadzban
2006-09-14 7:00 ` Scott James Remnant
5 siblings, 0 replies; 7+ messages in thread
From: Bryan Kadzban @ 2006-09-14 3:06 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1.1: Type: text/plain, Size: 774 bytes --]
Miles Lane wrote:
> One of the outcomes is that detection order can differ from the one
> in serialized detection. Perhaps this is the reason for these
> messages.
Well, that (and the fact that the kernel never guaranteed the order of
device discovery in the first place) is the reason that Ubuntu created
the rule that creates the rules that are causing the messages. So
indirectly, yes, what you said is true -- but don't expect changing
kernels to kill the messages. The rules would still exist.
To find out where they're coming from, try grepping your rules files for
some pattern similar to:
NAME=.eth
as that should match the NAME="eth0" part of these rules. I wouldn't
remove the rules, though, since they're the only thing giving you stable
device names...
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 258 bytes --]
[-- Attachment #2: Type: text/plain, Size: 373 bytes --]
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
[-- Attachment #3: Type: text/plain, Size: 226 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to correct udev rules that generate errors with udev 100
2006-09-13 23:28 How to correct udev rules that generate errors with udev 100 Miles Lane
` (4 preceding siblings ...)
2006-09-14 3:06 ` Bryan Kadzban
@ 2006-09-14 7:00 ` Scott James Remnant
5 siblings, 0 replies; 7+ messages in thread
From: Scott James Remnant @ 2006-09-14 7:00 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1.1: Type: text/plain, Size: 794 bytes --]
On Wed, 2006-09-13 at 20:41 -0400, Bryan Kadzban wrote:
> Miles Lane wrote:
> > Any idea why udev would be changing the netdevice names?
>
> Because you have a rule that names the NIC by either MAC address or
> physical (bus) location, would be my guess. ;-) It looks like udevd
> is trying to swap names, so your kernel probably detected the devices
> in the opposite order from what your rules say they should be named.
>
> (You may not even know about this rule; it may have been generated by
> another rule-generating rule that Ubuntu put in place.)
>
In Ubuntu, the rule parses the /etc/iftab file for this information --
so check that file.
You'll almost certainly find that it's doing the right thing for you.
Scott
--
Scott James Remnant
scott@ubuntu.com
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 191 bytes --]
[-- Attachment #2: Type: text/plain, Size: 373 bytes --]
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
[-- Attachment #3: Type: text/plain, Size: 226 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-09-14 7:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-13 23:28 How to correct udev rules that generate errors with udev 100 Miles Lane
2006-09-13 23:29 ` Kay Sievers
2006-09-14 0:21 ` Miles Lane
2006-09-14 0:41 ` Bryan Kadzban
2006-09-14 1:08 ` Miles Lane
2006-09-14 3:06 ` Bryan Kadzban
2006-09-14 7:00 ` Scott James Remnant
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).