diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-05-19 15:07:39 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-05-19 17:46:47 +0200 |
commit | f78d6ff2ab6250bbc68bd494f93cc63fc4372c5e (patch) | |
tree | 03399bf16b94654f3ad36088f7df6e8ebe4ac10a /rules.d | |
parent | pid1: order units using TTYVHangup= after vconsole setup (diff) | |
download | systemd-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.in | 2 |
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" |