From: Zbigniew Jędrzejewski-Szmek Date: Fri, 19 May 2023 13:07:39 +0000 (+0200) Subject: rules: start systemd-vconsole-setup via unit X-Git-Tag: v254-rc1~421^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f78d6ff2ab6250bbc68bd494f93cc63fc4372c5e;p=thirdparty%2Fsystemd.git 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. --- diff --git a/rules.d/90-vconsole.rules.in b/rules.d/90-vconsole.rules.in index 845785492bb..bc7f8a1698a 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"