You are not logged in.

#1 2014-12-21 01:53:23

gillecaluim
Member
Registered: 2014-11-02
Posts: 42

udev rule ignored for network interface

I have several network adapters on a new install
I created a /etc/udev/rules.d/10-network.rules
SUBSYSTEM=="net", ATTR{address}=="fc:aa:14:2b:57:14", NAME="net0"
SUBSYSTEM=="net", ATTR{address}=="fc:aa:14:2b:57:28", NAME="net1"
SUBSYSTEM=="net", ATTR{address}=="c8:d7:19:be:c8:59", NAME="wifi0"
SUBSYSTEM=="net", ATTR{address}=="f8:16:54:3e:68:cc", NAME="wifi1"
but, the udev rule is ignored....
journalctl | grep systemd-udevd
....Network interface NamePolicy= disabled on kernel command line, ignoring

I'm using UEFI gummiboot with the default /boot/loader/loader.conf which
default 89143590375157109508287482-*

what's this number referring to?
where are the kernel command line options located with this entry?

Offline

#2 2014-12-21 02:03:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: udev rule ignored for network interface

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_Code

Your udev rules are missing the ACTION.

Kernel line options for gummiboot are in the entries config file(s). See the wiki page for details.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-12-21 02:09:41

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: udev rule ignored for network interface

gillecaluim wrote:

I'm using UEFI gummiboot with the default /boot/loader/loader.conf which
default 89143590375157109508287482-*

what's this number referring to?

It doesn't refer to anything -- you are supposed to write your own loader entries and set the "default" to the name of your chosen entry.
https://wiki.archlinux.org/index.php/Be … #Gummiboot

I am amazed your system boots at all with that loader.conf...


Jin, Jîyan, Azadî

Offline

#4 2014-12-21 03:11:28

gillecaluim
Member
Registered: 2014-11-02
Posts: 42

Re: udev rule ignored for network interface

I've added ACTION=="add" to the 10-network.rules

 SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="fc:aa:14:2b:57:14", NAME="net0"
 SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="fc:aa:14:2b:57:28", NAME="net1"
 SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="f8:16:54:3e:68:cc", NAME="wifi1"
 SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="c8:d7:19:be:c8:59", NAME="wifi0"

I created a custom loader entry

title OurHome Server
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=/dev/sda2 rw

still not working and still getting journalctl | grep systemd-udevd

Network interface NamePolicy= disabled on kernel command line, ignoring.

Offline

#5 2014-12-21 03:49:14

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: udev rule ignored for network interface

I don't know why you think the two issues are related: they are not. What is your problem with gummiboot?

Regarding the udev rule, you can debug with udevadm: https://wiki.archlinux.org/index.php/Ud … re_loading


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2014-12-21 03:58:02

gillecaluim
Member
Registered: 2014-11-02
Posts: 42

Re: udev rule ignored for network interface

I think they're related because
1. rules as per the wiki hasn't helped
2. journalctl | grep udev doesn't indicate any problems
3. still don't understand why I'm getting the message Network interface NamePolicy = disabled

Offline

#7 2014-12-21 12:54:52

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: udev rule ignored for network interface

It should be NAME:=
instead of NAME=

Add the colon! To prevent later rules from overriding your NAME.

Offline

#8 2014-12-21 16:44:14

gillecaluim
Member
Registered: 2014-11-02
Posts: 42

Re: udev rule ignored for network interface

that's the answer.....thanks so much.  Never saw that mentioned in any of my searches about udev rules.

Offline

Board footer

Powered by FluxBB