| 1 | <?xml version='1.0' encoding='UTF-8'?> |
1 | <?xml version='1.0' encoding='UTF-8'?> |
| 2 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
2 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
| 3 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/openrc-migration.xml,v 1.13 2009/02/11 09:09:40 nightmorph Exp $ --> |
3 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/openrc-migration.xml,v 1.14 2009/02/12 00:59:32 nightmorph Exp $ --> |
| 4 | |
4 | |
| 5 | <guide link="/doc/en/openrc-migration.xml"> |
5 | <guide link="/doc/en/openrc-migration.xml"> |
| 6 | <title>Baselayout and OpenRC Migration Guide</title> |
6 | <title>Baselayout and OpenRC Migration Guide</title> |
| 7 | |
7 | |
| 8 | <author title="Author"> |
8 | <author title="Author"> |
| … | |
… | |
| 248 | <title>Udev</title> |
248 | <title>Udev</title> |
| 249 | <body> |
249 | <body> |
| 250 | |
250 | |
| 251 | <p> |
251 | <p> |
| 252 | OpenRC no longer starts <c>udev</c> by default, but it does need to be present |
252 | OpenRC no longer starts <c>udev</c> by default, but it does need to be present |
| 253 | in the <c>sysfs</c> runlevel to be started. The OpenRC ebuild should detect if |
253 | in the <c>sysinit</c> runlevel to be started. The OpenRC ebuild should detect if |
| 254 | <c>udev</c> was previously enabled and add it to the <c>sysfs</c> runlevel. |
254 | <c>udev</c> was previously enabled and add it to the <c>sysinit</c> runlevel. |
| 255 | However, to be safe, check if <c>udev</c> is present: |
255 | However, to be safe, check if <c>udev</c> is present: |
| 256 | </p> |
256 | </p> |
| 257 | |
257 | |
| 258 | <pre caption="Verifying udev"> |
258 | <pre caption="Verifying udev"> |
| 259 | # <i>ls -l /etc/runlevels/sysfs</i> |
259 | # <i>ls -l /etc/runlevels/sysinit</i> |
| 260 | lrwxrwxrwx 1 root root 14 2009-01-29 08:00 /etc/runlevels/sysfs/udev -> \ |
260 | lrwxrwxrwx 1 root root 14 2009-01-29 08:00 /etc/runlevels/sysinit/udev -> \ |
| 261 | /etc/init.d/udev |
261 | /etc/init.d/udev |
| 262 | </pre> |
262 | </pre> |
| 263 | |
263 | |
| 264 | <p> |
264 | <p> |
| 265 | If <c>udev</c> is not listed, add it to the correct runlevel: |
265 | If <c>udev</c> is not listed, add it to the correct runlevel: |
| 266 | </p> |
266 | </p> |
| 267 | |
267 | |
| 268 | <pre caption="Adding udev to the sysfs runlevel"> |
268 | <pre caption="Adding udev to the sysinit runlevel"> |
| 269 | # <i>rc-update add udev sysfs</i> |
269 | # <i>rc-update add udev sysinit</i> |
| 270 | </pre> |
270 | </pre> |
| 271 | |
271 | |
| 272 | </body> |
272 | </body> |
| 273 | </section> |
273 | </section> |
| 274 | <section> |
274 | <section> |