Eudev: Difference between revisions

From Alpine Linux
m (fixed typo)
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:
=== Setup script ===
=== Setup script ===
{{:Include:Setup Device Manager}}
{{:Include:Setup Device Manager}}
No need for further configuration steps as the above script takes care of all necessary changes.


=== Manual installation ===
=== Manual installation ===


You need to install eudev itself and the udev services. {{cmd|# apk add {{pkg|eudev}} {{pkg|udev-init-scripts}}}}
You need to install {{pkg|eudev}} itself. {{cmd|# apk add {{pkg|eudev}} {{pkg|udev-init-scripts}}}}
 
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.


If you already have a device manager installed you need to stop it before you start eudev. Then enable the following services.
{{cmd|<nowiki># rc-update add udev sysinit
{{cmd|<nowiki># rc-update add udev sysinit
# rc-update add udev-trigger sysinit
# rc-update add udev-trigger sysinit
Line 20: Line 31:
</nowiki>}}
</nowiki>}}


If you are not running in a chroot you will also want to start eudev. {{cmd|<nowiki># rc-service udev start
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-trigger start
# rc-service udev-settle start
# rc-service udev-settle start
# rc-service udev-postmount start </nowiki>}}
# rc-service udev-postmount start </nowiki>}}


If you want to use [https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/ predictable network interface names], install eudev-netifnames. {{cmd|# apk add {{pkg|eudev-netifnames}}}}
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", ...).
 
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}}}}


== Remove ==
== Manual removal ==


{{warning|Disabling eudev without setting up a different device manager may cause unexpected issues. If you install a different device manager with the setup script this step is not needed.}}
{{warning|Use [[#Setup script|Setup script]] to change device manager. Manual removal of a device manager without setting up an alternative may cause unexpected issues.}}


If you are not running in a chroot you need to stop the service first.{{cmd|<nowiki># rc-service udev stop
If you are not running in a chroot you need to stop the service first.{{cmd|<nowiki># rc-service udev stop

Latest revision as of 07:30, 18 August 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 desktop systems is recommended in Alpine Linux. Without a fully functional device manager, users will not be able to connect to input devices. 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 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