1 |
On Wed, Apr 03, 2013 at 08:06:20PM +0200, Jörg Schaible wrote: |
2 |
> Hi, |
3 |
> |
4 |
> Grant Edwards wrote: |
5 |
> |
6 |
> > On 2013-04-03, Neil Bothwick <neil@××××××××××.uk> wrote: |
7 |
> > |
8 |
> >> Have you read the news item? |
9 |
> > |
10 |
> > Yes. I found it rather confusing. |
11 |
> > |
12 |
> > It refers to a "new format" for rules, but the examples use the exact |
13 |
> > same format as the old rules. |
14 |
> > |
15 |
> > It talks about how 80-net-name-slot.rules needs to be either an empty |
16 |
> > file or a synmlink to /dev/null if you want to disable the new naming |
17 |
> > scheme -- but that doesn't seem to be right. After the upgrade my |
18 |
> > 80-net-name-slot.rules file was neither an empty file nor a symlink to |
19 |
> > /dev/null, but I'm still getting the same old names. |
20 |
> |
21 |
> same for me. I followed the upgrade guide and removed any 70-* files, |
22 |
> renamed the net.eth0 link to the new scheme net.enp0s1 just to to find out |
23 |
> that the kernel could not bring up a network with the such a device. The |
24 |
> machine booted fine after using eth0 instead again. One a second machine I |
25 |
> kept eth0 immediately and it booted without problems afterwards. |
26 |
> |
27 |
> >> It explains why the file should be renamed and also why you should |
28 |
> >> change the names in the rules to not use ethN. |
29 |
> > |
30 |
> > The only explanation I found was "the old way is now deprecated". |
31 |
> |
32 |
> And the new name simply did not work. |
33 |
> |
34 |
> - Jörg |
35 |
|
36 |
When the news item is too convoluted to understand without writing it on |
37 |
paper, and doing a diagram of my LAN, I just get out the USB SystemRescueCD |
38 |
and have it ready on first reboot. So far I've just sailed along as it's been |
39 |
since before last March or so when WilliamH first put out the news item about |
40 |
udev about to fubar the universe. I'd not wanted to go to or past udev-181, |
41 |
but kerframil told me to stop being scared and upgrade to stable, so I did. |
42 |
And here are the results, just upgrading, not changing ANY file: |
43 |
|
44 |
mingdao@router ~ $ less /etc/udev/rules.d/80-net-name-slot.rules |
45 |
/etc/udev/rules.d/80-net-name-slot.rules: No such file or directory |
46 |
mingdao@router ~ $ eix sys-fs/udev |
47 |
[I] sys-fs/udev |
48 |
Available versions: [M]171-r10 197-r8^t ~198-r6^t ~199-r1^t 200^t **9999^t {{acl action_modeswitch build debug doc edd extras +firmware-loader floppy gudev hwdb introspection keymap +kmod +openrc +rule_generator selinux static-libs test}} |
49 |
Installed versions: 200^t(05:01:58 PM 04/02/2013)(acl firmware-loader kmod openrc -doc -gudev -hwdb -introspection -keymap -selinux -static-libs) |
50 |
Homepage: http://www.freedesktop.org/wiki/Software/systemd |
51 |
Description: Linux dynamic and persistent device naming support (aka userspace devfs) |
52 |
|
53 |
[I] sys-fs/udev-init-scripts |
54 |
Available versions: 23^t ~24^t 25^t **9999^t |
55 |
Installed versions: 25^t(05:02:08 PM 04/02/2013) |
56 |
Homepage: http://www.gentoo.org |
57 |
Description: udev startup scripts for openrc |
58 |
|
59 |
Found 2 matches. |
60 |
mingdao@router ~ $ cat /etc/udev/rules.d/70-persistent-net.rules |
61 |
# This file was automatically generated by the /lib/udev/write_net_rules |
62 |
# program, run by the persistent-net-generator.rules rules file. |
63 |
# |
64 |
# You can modify it, as long as you keep each rule on a single |
65 |
# line, and change only the value of the NAME= key. |
66 |
|
67 |
# PCI device 0x8086:0x10d3 (e1000e) |
68 |
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="68:05:ca:03:05:5d", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" |
69 |
|
70 |
# PCI device 0x8086:0x10d3 (e1000e) |
71 |
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="68:05:ca:03:05:50", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" |
72 |
|
73 |
# PCI device 0x10de:0x03ef (forcedeth) |
74 |
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="f4:6d:04:e8:1d:d9", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" |
75 |
|
76 |
|
77 |
|
78 |
mingdao@server ~ $ less /etc/udev/rules.d/80-net-name-slot.rules |
79 |
/etc/udev/rules.d/80-net-name-slot.rules: No such file or directory |
80 |
mingdao@server ~ $ eix sys-fs/udev |
81 |
[I] sys-fs/udev |
82 |
Available versions: [M]171-r10 197-r8^t ~198-r6^t ~199-r1^t 200^t **9999^t {{acl action_modeswitch build debug doc edd extras +firmware-loader floppy gudev hwdb introspection keymap +kmod +openrc +rule_generator selinux static-libs test}} |
83 |
Installed versions: 200^t(06:01:45 PM 04/02/2013)(acl firmware-loader kmod openrc -doc -gudev -hwdb -introspection -keymap -selinux -static-libs) |
84 |
Homepage: http://www.freedesktop.org/wiki/Software/systemd |
85 |
Description: Linux dynamic and persistent device naming support (aka userspace devfs) |
86 |
|
87 |
[I] sys-fs/udev-init-scripts |
88 |
Available versions: 23^t ~24^t 25^t **9999^t |
89 |
Installed versions: 25^t(06:01:58 PM 04/02/2013) |
90 |
Homepage: http://www.gentoo.org |
91 |
Description: udev startup scripts for openrc |
92 |
|
93 |
Found 2 matches. |
94 |
mingdao@server ~ $ cat /etc/udev/rules.d/70-persistent-net.rules |
95 |
# This file was automatically generated by the /lib/udev/write_net_rules |
96 |
# program, run by the persistent-net-generator.rules rules file. |
97 |
# |
98 |
# You can modify it, as long as you keep each rule on a single |
99 |
# line, and change only the value of the NAME= key. |
100 |
|
101 |
# PCI device 0x14e4:0x1659 (tg3) |
102 |
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:d0:68:0b:87:66", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" |
103 |
|
104 |
# PCI device 0x14e4:0x1659 (tg3) |
105 |
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:d0:68:0b:87:67", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" |
106 |
|
107 |
|
108 |
|
109 |
mingdao@workstation ~ $ less /etc/udev/rules.d/80-net-name-slot.rules |
110 |
/etc/udev/rules.d/80-net-name-slot.rules: No such file or directory |
111 |
mingdao@workstation ~ $ eix sys-fs/udev |
112 |
[I] sys-fs/udev |
113 |
Available versions: [M]171-r10 197-r8^t ~198-r6^t ~199-r1^t 200^t **9999^t {{acl action_modeswitch build debug doc edd extras +firmware-loader floppy gudev hwdb introspection keymap +kmod +openrc +rule_generator selinux static-libs test}} |
114 |
Installed versions: 200^t(05:35:34 PM 04/02/2013)(firmware-loader gudev kmod openrc -acl -doc -hwdb -introspection -keymap -selinux -static-libs) |
115 |
Homepage: http://www.freedesktop.org/wiki/Software/systemd |
116 |
Description: Linux dynamic and persistent device naming support (aka userspace devfs) |
117 |
|
118 |
[I] sys-fs/udev-init-scripts |
119 |
Available versions: 23^t ~24^t 25^t **9999^t |
120 |
Installed versions: 25^t(05:35:12 PM 04/02/2013) |
121 |
Homepage: http://www.gentoo.org |
122 |
Description: udev startup scripts for openrc |
123 |
|
124 |
Found 2 matches. |
125 |
mingdao@workstation ~ $ cat /etc/udev/rules.d/70-persistent-net.rules |
126 |
# This file was automatically generated by the /lib/udev/write_net_rules |
127 |
# program, run by the persistent-net-generator.rules rules file. |
128 |
# |
129 |
# You can modify it, as long as you keep each rule on a single |
130 |
# line, and change only the value of the NAME= key. |
131 |
|
132 |
# PCI device 0x8086:0x10d3 (e1000e) |
133 |
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1b:21:b8:e2:f8", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" |
134 |
|
135 |
# PCI device 0x10ec:0x8168 (r8169) |
136 |
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="f4:6d:04:d2:6b:be", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" |
137 |
|
138 |
|
139 |
|
140 |
mingdao@router ~ $ less /etc/udev/rules.d/80-net-name-slot.rules |
141 |
/etc/udev/rules.d/80-net-name-slot.rules: No such file or directory |
142 |
mingdao@router ~ $ eix sys-fs/udev |
143 |
[I] sys-fs/udev |
144 |
Available versions: [M]171-r10 197-r8^t ~198-r6^t ~199-r1^t 200^t **9999^t {{acl action_modeswitch build debug doc edd extras +firmware-loader floppy gudev hwdb introspection keymap +kmod +openrc +rule_generator selinux static-libs test}} |
145 |
Installed versions: 200^t(05:01:58 PM 04/02/2013)(acl firmware-loader kmod openrc -doc -gudev -hwdb -introspection -keymap -selinux -static-libs) |
146 |
Homepage: http://www.freedesktop.org/wiki/Software/systemd |
147 |
Description: Linux dynamic and persistent device naming support (aka userspace devfs) |
148 |
|
149 |
[I] sys-fs/udev-init-scripts |
150 |
Available versions: 23^t ~24^t 25^t **9999^t |
151 |
Installed versions: 25^t(05:02:08 PM 04/02/2013) |
152 |
Homepage: http://www.gentoo.org |
153 |
Description: udev startup scripts for openrc |
154 |
|
155 |
Found 2 matches. |
156 |
mingdao@router ~ $ cat /etc/udev/rules.d/70-persistent-net.rules |
157 |
# This file was automatically generated by the /lib/udev/write_net_rules |
158 |
# program, run by the persistent-net-generator.rules rules file. |
159 |
# |
160 |
# You can modify it, as long as you keep each rule on a single |
161 |
# line, and change only the value of the NAME= key. |
162 |
|
163 |
# PCI device 0x8086:0x10d3 (e1000e) |
164 |
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="68:05:ca:03:05:5d", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" |
165 |
|
166 |
# PCI device 0x8086:0x10d3 (e1000e) |
167 |
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="68:05:ca:03:05:50", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" |
168 |
|
169 |
# PCI device 0x10de:0x03ef (forcedeth) |
170 |
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="f4:6d:04:e8:1d:d9", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" |
171 |
|
172 |
|
173 |
|
174 |
mingdao@peter ~ $ less /etc/udev/rules.d/80-net-name-slot.rules |
175 |
/etc/udev/rules.d/80-net-name-slot.rules: No such file or directory |
176 |
mingdao@peter ~ $ eix sys-fs/udev |
177 |
[I] sys-fs/udev |
178 |
Available versions: [M]171-r10 197-r8^t ~198-r6^t ~199-r1^t 200^t **9999^t {{acl action_modeswitch build debug doc edd extras +firmware-loader floppy gudev hwdb introspection keymap +kmod +openrc +rule_generator selinux static-libs test}} |
179 |
Installed versions: 200^t(11:35:07 AM 04/01/2013)(firmware-loader kmod openrc -acl -doc -gudev -hwdb -introspection -keymap -selinux -static-libs) |
180 |
Homepage: http://www.freedesktop.org/wiki/Software/systemd |
181 |
Description: Linux dynamic and persistent device naming support (aka userspace devfs) |
182 |
|
183 |
[I] sys-fs/udev-init-scripts |
184 |
Available versions: 23^t ~24^t 25^t **9999^t |
185 |
Installed versions: 25^t(11:34:23 AM 04/01/2013) |
186 |
Homepage: http://www.gentoo.org |
187 |
Description: udev startup scripts for openrc |
188 |
|
189 |
Found 2 matches. |
190 |
mingdao@peter ~ $ cat /etc/udev/rules.d/70-persistent-net.rules |
191 |
# This file was automatically generated by the /lib/udev/write_net_rules |
192 |
# program, run by the persistent-net-generator.rules rules file. |
193 |
# |
194 |
# You can modify it, as long as you keep each rule on a single |
195 |
# line, and change only the value of the NAME= key. |
196 |
|
197 |
# PCI device 0x10ec:0x8168 (r8169) |
198 |
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="bc:ae:c5:6c:3c:97", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" |
199 |
|
200 |
|
201 |
Therefore, all's well that's still working! And AFAIR, on at least 2 of those |
202 |
machines, the 70-persistent-net.rules was never something I did manually. |
203 |
|
204 |
I've grown weary of the poor Linux desktop(s), so these are the only 5 |
205 |
computers left on the LAN running Gentoo. Two laptops and two PCs that were |
206 |
for desktop type computers only have been migrated to Windows 7. I really hate |
207 |
it, but at least now everything desktop environment wise just works, and does |
208 |
not either (a) get messed up by updates, or (b) require a lot of work to get |
209 |
it to work properly to start with, or keep it working. |
210 |
|
211 |
Cheers, |
212 |
Bruce |
213 |
-- |
214 |
Happy Penguin Computers >') |
215 |
126 Fenco Drive ( \ |
216 |
Tupelo, MS 38801 ^^ |
217 |
support@×××××××××××××××××××××.com |
218 |
662-269-2706 662-205-6424 |
219 |
http://happypenguincomputers.com/ |
220 |
|
221 |
A: Because it messes up the order in which people normally read text. |
222 |
Q: Why is top-posting such a bad thing? |
223 |
A: Top-posting. |
224 |
Q: What is the most annoying thing in e-mail? |
225 |
|
226 |
Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting |