Gentoo Archives: gentoo-user

From: Grant <emailgrant@×××××.com>
To: Gentoo mailing list <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Execute udev rule before net.* scripts
Date: Tue, 26 Aug 2014 12:43:33
Message-Id: CAN0CFw1m3W-Mo+db2va05oni7wPe=aa1qo3+eObEiTMHMRxWmg@mail.gmail.com
In Reply to: Re: [gentoo-user] Execute udev rule before net.* scripts by Tom H
1 >>>> SUBSYSTEM=="net", KERNEL=="enp3s0u1", NAME="net0"
2 >>>
3 >>> "enp3s0u1" isn't a kernel name; it's an "ID_NET_NAME_PATH" attribute.
4 >>
5 >> That's what came to my mind too, that's why I instructed him away from it.
6 >
7 > Yeah, I saw your email after I sent mine.
8 >
9 > I now have to figure out why you're recommending a 80< prefix when I
10 > thought that a >80 prefix is necessary in order AFAIK to override
11 > "/lib/udev/rules.d/80-net-setup-link.rules".
12 >
13 > I tried 75- instead of 85- this morning before leaving for work and
14 > the interfaces were renamed properly so I'm clearly wrong...
15
16
17 I'm not totally sure that this answers your question, but:
18
19 "Because the rules are triggered before the default one (rules are
20 triggered in alphanumerical order, so 70 comes before 80) the names
21 provided in the rule file will be used instead of the default ones.
22 The number granted to the file should be between 76 and 79 (the
23 environment variables are defined by a rule start starts with 75 and
24 the fallback naming is done in a rule numbered 80)."
25
26 https://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=4&chap=2#doc_chap4
27
28 - Grant

Replies

Subject Author
Re: [gentoo-user] Execute udev rule before net.* scripts Tom H <tomh0665@×××××.com>