summaryrefslogtreecommitdiffstats
path: root/rules.d
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-05-19 15:07:39 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-05-19 17:46:47 +0200
commitf78d6ff2ab6250bbc68bd494f93cc63fc4372c5e (patch)
tree03399bf16b94654f3ad36088f7df6e8ebe4ac10a /rules.d
parentpid1: order units using TTYVHangup= after vconsole setup (diff)
downloadsystemd-f78d6ff2ab6250bbc68bd494f93cc63fc4372c5e.tar.xz
systemd-f78d6ff2ab6250bbc68bd494f93cc63fc4372c5e.zip
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.
Diffstat (limited to 'rules.d')
-rw-r--r--rules.d/90-vconsole.rules.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.d/90-vconsole.rules.in b/rules.d/90-vconsole.rules.in
index 845785492b..bc7f8a1698 100644
--- a/rules.d/90-vconsole.rules.in
+++ b/rules.d/90-vconsole.rules.in
@@ -9,4 +9,4 @@
# 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"