From 2987558716986d66b575d1b1c71601ad0b61b16a Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Wed, 21 Jun 2023 16:34:47 +0200 Subject: [PATCH] getty-checktrust: Fix dependencies It is not possible to use template units with directives, so Before=getty@.service does not work. There is a getty-pre.target unit which can be requested by services, which want to be ordered before getty. Use that instead. Although, WantedBy=getty@.service does work, this is strictly not correct, because we want this service to run indepdendent from getty, for example, to set the tag for lightdm. Change to WantedBy=multi-user.target. --- checktrust/getty-checktrust.service | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/checktrust/getty-checktrust.service b/checktrust/getty-checktrust.service index 5c0765b..21eb79c 100644 --- a/checktrust/getty-checktrust.service +++ b/checktrust/getty-checktrust.service @@ -1,10 +1,11 @@ [Unit] -Before=getty@.service - -[Install] -WantedBy=getty@.service +Wants=getty-pre.target +Before=getty-pre.target [Service] Type=oneshot ExecStart=/usr/libexec/getty-checktrust RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target