Eudev/zh-cn

is Article description::Gentoo's fork of, 's manager for the Linux kernel. It manages device nodes in  and handles all user space actions when adding or removing devices.

The goal of eudev is to obtain better compatibility with existing software such as the init system, Upstart init system, older Linux kernels, various toolchains, and anything else required by (but not well supported through).

Similar to ebuild, eclass, emerge, etc. eudev's name follows the 'E' prefix convention started by Gentoo's founder Daniel Robbins.

System configurations running have no use for eudev.

USE 标记
Some packages know the   for enabling  integration.

Emerge
To avoid registration in the, the oneshot option should be used.

RC服务
The RC name is udev, not eudev. It needs to be registered in the sysinit runlevel.

From version 29 onward,   should also be added to the sysinit runlevel.

Optional: Keep classic network interface naming
Alternatively add  to the kernel command line, change the default policy or create a custom one.

An interesting resource related to the network naming is I don't like this, how do I disable this on the Freedesktop wiki.

Migrating from udev to eudev
Migrating from udev to eudev is straightforward.

First, disable the udev USE flag for systemd-utils:

In case the system uses multilib and, for example, has the  USE flag active against the older udev package, then don't forget to change it too:

Use new predictable network interface naming
The new network interface naming convention is not the same. So the used by  will need to be re-linked. Use as a link target for whatever interface names need to be added. Be sure to replace   in the commands below with the Ethernet interface names present on the system. It is possible to discover which interfaces exist by running the command:

Create symbolic links for the existing interfaces in the and  directories:

Add the script(s) to the default runlevel to have the interface(s) start automatically:

Keep classic network interface naming
Using an empty file at to enforce classic network interface naming will not work if migrating from eudev to udev. See for instructions relevant to udev.

使用 udevadm
开始 并且观察发生的变化:

Get device info using followed by the device path:

Get the device path using its name:

Test an event run using followed by the device path for which an event is to be tested:

To get a list of all commands:

从 udev 171-r10 到 eudev 1.2-r1
在 Gentoo 论坛上查看 这个帖子.

Broken system switching from udev to eudev
在 Gentoo 论坛上查看 这个帖子.

另请参阅

 * — The official Gentoo project fork of udev.
 * — The official Gentoo project fork of udev.

外部资源

 * Moving from udev (171-r10) to eudev (1.2-r1) on the Gentoo Forums
 * K1SS — replace eudev with the device manager of your choosing