Eudev: Difference between revisions

From Alpine Linux
(add page draft)
 
(Explicitly mention that a different device manager should be setup first)
 
(22 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Draft|Finish similar to [[mdev]] page}}
{{DISPLAYTITLE:eudev}}
[https://github.com/eudev-project/eudev eudev] is a [[Device_Manager|device manager]] that provides a drop-in replacement for systemd udev. It is therefore recommended for full blown desktop environments.


== eudev ==
== Installation ==
 
The easy way to setup eudev is through the [[#Setup_script|setup script]]. Only advanced users are recommended to do [[#Manual installation|manual installation]].
 
=== Setup script ===
{{:Include:Setup Device Manager}}
 
No need for further configuration steps as the above script takes care of all necessary changes.
 
=== Manual installation ===
 
You need to install {{pkg|eudev}} itself. {{cmd|# apk add {{pkg|eudev}} {{pkg|udev-init-scripts}}}}


== Installation ==
Proceed to [[#Configuration|Configuration]] step to configure eudev.
 
== Configuration ==
 
=== Service management ===
 
{{Note| If you already have a [[Device_Manager|device manager]] installed, you need to disable it before you enable eudev, to avoid conflicts during next reboot.}}
 
To use eudev as device manager enable the following services.
 
{{cmd|<nowiki># rc-update add udev sysinit
# rc-update add udev-trigger sysinit
# rc-update add udev-settle sysinit
# rc-update add udev-postmount default
</nowiki>}}
 
If you are not running in a [[Chroot]], you will also want to start eudev. {{Note| If you already have a [[Device_Manager|device manager]] installed, you need to stop it before you start eudev.}}
 
{{cmd|<nowiki># rc-service udev start
# rc-service udev-trigger start
# rc-service udev-settle start
# rc-service udev-postmount start </nowiki>}}
 
Whenever udev rules are changed, for the changes to take immediate effect, use the command:{{Cmd|<nowiki># udevadm control --reload-rules
# udevadm trigger</nowiki>}}
 
A reboot is usually necessary for the rule changes to fully take effect.
 
=== Predictable network interface names ===
 
eudev can automatically assign predictable, stable network [[Configure Networking#Interface configuration|interface names]]  for all local Ethernet, WLAN and WWAN interfaces instead of the traditional interface naming scheme ("eth0", "eth1", "wlan0", ...).


The easy way to setup eudev is throught the [[#Setup_Script|setup script]]. For custom installation see the [[#Manually|manually section]]. Note that this is only recommended for advanced users.
If you want [https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/ predictable network interface names], install the {{pkg|eudev-netifnames}} package. {{cmd|# apk add {{pkg|eudev-netifnames}}}}


=== Setup Script ===
== Manual removal ==


The {{pkg|alpine-conf}} package privides [https://git.alpinelinux.org/alpine-conf/tree/setup-devd.in setup-devd] to easily install and setup device managers.
{{warning|Use [[#Setup script|Setup script]] to change device manager. Manual removal of a device manager without first setting up an alternative may cause unexpected issues.}}


Install {{pkg|alpine-conf}} if not already.
If you are not running in a chroot you need to stop the service first.{{cmd|<nowiki># rc-service udev stop
{{cmd|# apk add {{pkg|alpine-conf}}}}
# rc-service udev-postmount stop</nowiki>}}
Setup eudev.
{{cmd|# setup-devd eudev}}


=== Manually ===
Then disable the services. {{cmd|<nowiki># rc-update delete udev sysinit
# rc-update delete udev-trigger sysinit
# rc-update delete udev-settle sysinit
# rc-update delete udev-postmount default</nowiki>}}


== Disable ==
You might also want to uninstall the packages since they are not used anymore. {{cmd|# apk del {{pkg|eudev}} {{pkg|udev-init-scripts}}}}


== See Also ==
== See also ==
* [[mdev]]
* [[:Category:Device_Manager|Device Managers]]
* [https://wiki.gentoo.org/wiki/Eudev Gentoo wiki eudev]
* [https://wiki.gentoo.org/wiki/Eudev Gentoo wiki eudev]
* [https://wiki.archlinux.org/title/Udev Archwiki udev]
* [https://wiki.archlinux.org/title/Udev Archwiki udev]
* [[Gamepad]]
[[Category:Device_Manager]]

Latest revision as of 17:52, 6 September 2025

eudev is a device manager that provides a drop-in replacement for systemd udev. It is therefore recommended for full blown desktop environments.

Installation

The easy way to setup eudev is through the setup script. Only advanced users are recommended to do manual installation.

Setup script

Setting up eudev as device manager on a desktop system is recommended. The alpine-conf package provides setup-devd script to easily install and setup device managers.

To set up eudev, issue the command:

# setup-devd udev

No need for further configuration steps as the above script takes care of all necessary changes.

Manual installation

You need to install eudev itself.

# apk add eudev udev-init-scripts

Proceed to Configuration step to configure eudev.

Configuration

Service management

Note: If you already have a device manager installed, you need to disable it before you enable eudev, to avoid conflicts during next reboot.

To use eudev as device manager enable the following services.

# rc-update add udev sysinit # rc-update add udev-trigger sysinit # rc-update add udev-settle sysinit # rc-update add udev-postmount default

If you are not running in a Chroot, you will also want to start eudev.

Note: If you already have a device manager installed, you need to stop it before you start eudev.

# rc-service udev start # rc-service udev-trigger start # rc-service udev-settle start # rc-service udev-postmount start

Whenever udev rules are changed, for the changes to take immediate effect, use the command:

# udevadm control --reload-rules # udevadm trigger

A reboot is usually necessary for the rule changes to fully take effect.

Predictable network interface names

eudev can automatically assign predictable, stable network interface names for all local Ethernet, WLAN and WWAN interfaces instead of the traditional interface naming scheme ("eth0", "eth1", "wlan0", ...).

If you want predictable network interface names, install the eudev-netifnames package.

# apk add eudev-netifnames

Manual removal

Warning: Use Setup script to change device manager. Manual removal of a device manager without first setting up an alternative may cause unexpected issues.


If you are not running in a chroot you need to stop the service first.

# rc-service udev stop # rc-service udev-postmount stop

Then disable the services.

# rc-update delete udev sysinit # rc-update delete udev-trigger sysinit # rc-update delete udev-settle sysinit # rc-update delete udev-postmount default

You might also want to uninstall the packages since they are not used anymore.

# apk del eudev udev-init-scripts

See also