1 |
commit: 475fa2f8455b91bd0ab48e0c7e22423b8d9b256f |
2 |
Author: Samuli Suominen <ssuominen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 29 14:18:00 2013 +0000 |
4 |
Commit: Samuli Suominen <ssuominen <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 29 14:18:00 2013 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/gentoo-news.git;a=commit;h=475fa2f8 |
7 |
|
8 |
Delete the old udev upgrade news item, by combining it with the predictable network interface news. Hopefully this helps someone. |
9 |
|
10 |
--- |
11 |
.../2013-01-23-udev-upgrade.en.txt | 33 ------ |
12 |
.../2013-01-23-udev-upgrade.en.txt.asc | 11 -- |
13 |
.../2013-03-29-udev-upgrade.en.txt | 103 ++++++++++++++++++++ |
14 |
.../2013-03-29-udev-upgrade.en.txt.asc | 11 ++ |
15 |
4 files changed, 114 insertions(+), 44 deletions(-) |
16 |
|
17 |
diff --git a/2013/2013-01-23-udev-upgrade/2013-01-23-udev-upgrade.en.txt b/2013/2013-01-23-udev-upgrade/2013-01-23-udev-upgrade.en.txt |
18 |
deleted file mode 100644 |
19 |
index 32f1bf6..0000000 |
20 |
--- a/2013/2013-01-23-udev-upgrade/2013-01-23-udev-upgrade.en.txt |
21 |
+++ /dev/null |
22 |
@@ -1,33 +0,0 @@ |
23 |
-Title: Upgrading udev from 171 (or older) to 197 (or newer) |
24 |
-Author: Samuli Suominen <ssuominen@g.o> |
25 |
-Content-Type: text/plain |
26 |
-Posted: 2013-01-23 |
27 |
-Revision: 1 |
28 |
-News-Item-Format: 1.0 |
29 |
-Display-If-Installed: <sys-fs/udev-198 |
30 |
- |
31 |
-Upgrading udev from 171 (or older) to 197 (or newer) will require special attention: |
32 |
- |
33 |
-- Remove udev-postmount from runlevels. |
34 |
- |
35 |
-- The need of CONFIG_DEVTMPFS=y in the kernel; need to verify the fstype for |
36 |
- possible /dev line in /etc/fstab is devtmpfs (and not, for example, tmpfs) |
37 |
- |
38 |
-- The case of predictable network interface names; if the file |
39 |
- /etc/udev/rules.d/70-persistent-net.rules is being used for renaming |
40 |
- network interface names to already existing names, then you need to |
41 |
- read following bug[1] because it's no longer possible. This won't |
42 |
- be a problem with the new predictable network interface name scheme[2]. |
43 |
- |
44 |
- [1] http://bugs.gentoo.org/453494 |
45 |
- [2] http://www.freedesktop.org/wiki/Software/systemd/ |
46 |
- PredictableNetworkInterfaceNames |
47 |
- |
48 |
-- The case of separate /usr; if it worked for you with 171 it will continue |
49 |
- to work for you with 197 (or newer). We still recommend initramfs with separate |
50 |
- /usr mounting capabilities because you might need packages like sys-apps/kbd |
51 |
- (keymaps in /usr) or net-wireless/bluez (possible keyboard) in early boot. |
52 |
- |
53 |
-And read every message printed by the emerge of udev and udev-init-scripts |
54 |
-to ensure the system is in order before booting as this news item might |
55 |
-not be complete. |
56 |
|
57 |
diff --git a/2013/2013-01-23-udev-upgrade/2013-01-23-udev-upgrade.en.txt.asc b/2013/2013-01-23-udev-upgrade/2013-01-23-udev-upgrade.en.txt.asc |
58 |
deleted file mode 100644 |
59 |
index 586fd4b..0000000 |
60 |
--- a/2013/2013-01-23-udev-upgrade/2013-01-23-udev-upgrade.en.txt.asc |
61 |
+++ /dev/null |
62 |
@@ -1,11 +0,0 @@ |
63 |
------BEGIN PGP SIGNATURE----- |
64 |
-Version: GnuPG v2.0.19 (GNU/Linux) |
65 |
- |
66 |
-iQEcBAABAgAGBQJRQEjnAAoJEEdUh39IaPFNAtMH/izuycg7lNNINTCfb0anJi5+ |
67 |
-MHJmRKPxAAA9MCAHq6ffB6/3WKzjnFQFRkLiN20CicDyZDa0NhwV4Dpxe5v0LHeh |
68 |
-xuv0GuUhnkTCtVHSTd6q5ljieEcdXeI/pm/sZ1WFfUUJ2VKnIdEPNv8+smjUgloI |
69 |
-ibQXb52lKYMSUICXcvhHtkzJvb5Jwbt2LFhZUlIFyN63N3GR23Wb4BFl9mSnT5du |
70 |
-wnJHIR/2E9f0KyjdSoXJT5eibc+3fyoPNNFXvsHvQP7+TXgnypynW6NvEwJy93zf |
71 |
-9ySXurpv4OYj4hd67mVerA2STYEXpAnMuu1Bzp24RnE++00V03LaenWQapsvUyA= |
72 |
-=myTJ |
73 |
------END PGP SIGNATURE----- |
74 |
|
75 |
diff --git a/2013/2013-03-29-udev-upgrade/2013-03-29-udev-upgrade.en.txt b/2013/2013-03-29-udev-upgrade/2013-03-29-udev-upgrade.en.txt |
76 |
new file mode 100644 |
77 |
index 0000000..caa147d |
78 |
--- /dev/null |
79 |
+++ b/2013/2013-03-29-udev-upgrade/2013-03-29-udev-upgrade.en.txt |
80 |
@@ -0,0 +1,103 @@ |
81 |
+Title: udev upgrade from 197 (or older) to 200 (or newer) |
82 |
+Author: Samuli Suominen <ssuominen@g.o> |
83 |
+Content-Type: text/plain |
84 |
+Posted: 2013-03-29 |
85 |
+Revision: 1 |
86 |
+News-Item-Format: 1.0 |
87 |
+Display-If-Installed: <sys-fs/udev-201 |
88 |
+ |
89 |
+This will replace the earlier news item of udev 197 upgrade, |
90 |
+and describe the predictable networking names to more detail. |
91 |
+ |
92 |
+If you skip these four phases, either your system won't boot or |
93 |
+networking will be down, or both. |
94 |
+Pay attention also to every message printed by emerge of sys-fs/udev |
95 |
+and sys-fs/udev-init-scripts as this news item may not be complete. |
96 |
+ |
97 |
+1. Removed init script: |
98 |
+ |
99 |
+Remove udev-postmount init script from runlevels. |
100 |
+ |
101 |
+2. DEVTMPFS support, both kernel and fstab: |
102 |
+ |
103 |
+CONFIG_DEVTMPFS=y kernel option must be enabled (and for that you need |
104 |
+at least kernel 2.6.32) see gentoo udev guide[1] for menuconfig |
105 |
+example. |
106 |
+ |
107 |
+If you have own line for /dev in /etc/fstab, make sure it's also |
108 |
+fstype 'devtmpfs' and not fstype 'tmpfs' or remove the entire line |
109 |
+since it's automounted without entry there anyway. |
110 |
+ |
111 |
+[1] http://www.gentoo.org/doc/en/udev-guide.xml |
112 |
+ |
113 |
+3. Old networking rules: |
114 |
+ |
115 |
+If the system still has old network interface renaming rules in |
116 |
+/etc/udev/rules.d, like 70-persistent-net.rules, those will need |
117 |
+to be be either modified or removed. |
118 |
+ |
119 |
+If you choose to modify them, you must use free namespace (like net* |
120 |
+or internet*) instead of kernel namespace (like eth* or wlan*) |
121 |
+because in-place renaming has been deprecated, see small |
122 |
+documentation of it if you like[1] |
123 |
+ |
124 |
+The file 70-persistent-net.rules, like the 70-persistent-cd.rules |
125 |
+should be removed, so if you modify, rename the file also to something |
126 |
+else like 70-my-network.rules to silence the deprecation warning coming |
127 |
+from end of sys-fs/udev emerge. |
128 |
+ |
129 |
+This is the old format with reserved namespace: |
130 |
+ |
131 |
+SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="xx:xx:xx:xx:xx:xx", |
132 |
+NAME="eth0" |
133 |
+SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="yy:yy:yy:yy:yy:yy", |
134 |
+NAME="eth1" |
135 |
+ |
136 |
+This is the new format with free namespace: |
137 |
+ |
138 |
+SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="xx:xx:xx:xx:xx:xx", |
139 |
+NAME="net0" |
140 |
+SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="yy:yy:yy:yy:yy:yy", |
141 |
+NAME="net1" |
142 |
+ |
143 |
+4. The predictable network interface naming: |
144 |
+ |
145 |
+If /etc/udev/rules.d/80-net-name-slot.rules is a empty file, or if it's |
146 |
+a symlink to /dev/null, the new names will be disabled and kernel will |
147 |
+do all the interface naming, and the resulting names will vary by kernel |
148 |
+and hardware configuration, and may vary by kernel version. |
149 |
+ |
150 |
+Also, the forementioned old 70-persistent-net.rules might interfere with |
151 |
+the new enabling of the new predictable interface names! |
152 |
+ |
153 |
+You can get attributes of your networking interfaces using following |
154 |
+example command (replace eth0 with your current interface name): |
155 |
+ |
156 |
+# udevadm test-builtin net_id /sys/class/net/eth0 2> /dev/null |
157 |
+ |
158 |
+You can copy /lib/udev/rules.d/80-net-name-slot.rules to |
159 |
+/etc/udev/rules.d and specify what attributes and in which order |
160 |
+gets used for naming. See upstream wiki[2] for detailed list |
161 |
+of options. |
162 |
+ |
163 |
+You can prepare the system this way for the new names before booting, |
164 |
+like renaming /etc/init.d/net.* symlinks. |
165 |
+ |
166 |
+The feature can also be completely disabled using net.ifnames=0 kernel |
167 |
+commandline option. |
168 |
+ |
169 |
+If you only have one interface card, you don't necessarily have much |
170 |
+use for this feature as the name almost always stays at eth0, you can |
171 |
+easily disable it using forementioned methods. |
172 |
+ |
173 |
+In a normal new installation there are no files in /etc/udev/rules.d |
174 |
+and if you haven't edited any files you have in there, you should most |
175 |
+likely backup and delete them all if they don't belong to any packages. |
176 |
+ |
177 |
+This feature can also replace the functionality of sys-apps/biosdevname, |
178 |
+but you can still keep using it if you want. |
179 |
+ |
180 |
+[1] http://www.kernel.org/doc/htmldocs/device-drivers/ |
181 |
+ API-device-rename.html |
182 |
+[2] http://www.freedesktop.org/wiki/Software/systemd/ |
183 |
+ PredictableNetworkInterfaceNames |
184 |
|
185 |
diff --git a/2013/2013-03-29-udev-upgrade/2013-03-29-udev-upgrade.en.txt.asc b/2013/2013-03-29-udev-upgrade/2013-03-29-udev-upgrade.en.txt.asc |
186 |
new file mode 100644 |
187 |
index 0000000..4a870da |
188 |
--- /dev/null |
189 |
+++ b/2013/2013-03-29-udev-upgrade/2013-03-29-udev-upgrade.en.txt.asc |
190 |
@@ -0,0 +1,11 @@ |
191 |
+-----BEGIN PGP SIGNATURE----- |
192 |
+Version: GnuPG v2.0.19 (GNU/Linux) |
193 |
+ |
194 |
+iQEcBAABAgAGBQJRVaIEAAoJEEdUh39IaPFNhm8H/RqJTpPAGwLdFGBVBT+cxL0o |
195 |
+U2Xh5EZEGbl5f4+LWkeqJKH6+diqJIgCTDaCyS4CybAWkW0FLjRInPdU0x0QIstz |
196 |
+9Dd5HxempWwG3dpHi5azny4C1zmYTPxv4sdMiCO1cIanAkW8aysMALNRmVPy0c3W |
197 |
+baLUPm/TXbF7MqE103wNuCSQ6ze2KU9V6zIqZBne7ceGQLlPqb0K+NB9iNhA9zBi |
198 |
+3v1/AUhKkATY5V5wZKmKt3g/wqx86NPTYUtlXfYvKcVfD7o8NAYTEZp+5A+G6YNr |
199 |
+xXHSfAbFbyrsoHbRbnLx3peYOt+7ELo6TjkAHghAeQ4rtz5PqQEyXho4qotgC6g= |
200 |
+=EUBf |
201 |
+-----END PGP SIGNATURE----- |