mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
rules: start systemd-vconsole-setup via unit
We started systemd-vconsole-setup in two ways: via a dbus call from localed to do systemd-vconsole-setup.service/restart, and from udev, calling the binary directly. This patch makes udev call systemctl restart systemd-vconsole-setup.service effectively implementing the same method as localed. Ordering is implemented at the unit level, so we can use --no-block to not block here.
This commit is contained in:
@@ -9,4 +9,4 @@
|
|||||||
|
|
||||||
# Each vtcon keeps its own state of fonts.
|
# Each vtcon keeps its own state of fonts.
|
||||||
#
|
#
|
||||||
ACTION=="add", SUBSYSTEM=="vtconsole", KERNEL=="vtcon*", RUN+="{{ROOTLIBEXECDIR}}/systemd-vconsole-setup"
|
ACTION=="add", SUBSYSTEM=="vtconsole", KERNEL=="vtcon*", RUN+="{{SYSTEMCTL_BINARY_PATH}} --no-block restart systemd-vconsole-setup.service"
|
||||||
|
|||||||
Reference in New Issue
Block a user