From 52257aa8a389d681965f51cfbcaa454b75fe92a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mart=C3=ADn?= Date: Wed, 2 Oct 2024 09:43:23 +0200 Subject: [PATCH] fix(systemd-units): run before powering off the system MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Run before coreos-installer-poweroff.service and coreos-installer-noreboot.service systemd units. Otherwise the coreos-installer-poweroff.service and the manufacturing-client.service are run in parallel and the manufacturing client can be stopped before finishing the manufacturing process. Resolves: RHEL-38482 Signed-off-by: Miguel Martín --- dracut/52fdo/manufacturing-client.service | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dracut/52fdo/manufacturing-client.service b/dracut/52fdo/manufacturing-client.service index 9ce9eacba..53268891b 100644 --- a/dracut/52fdo/manufacturing-client.service +++ b/dracut/52fdo/manufacturing-client.service @@ -3,6 +3,8 @@ Description=Manufacturing client DIUN DefaultDependencies=false After=coreos-installer.service +Before=coreos-installer-poweroff.service +Before=coreos-installer-noreboot.service Before=coreos-installer-reboot.service ConditionPathExists=/etc/manufacturing-client-config Requires=dev-disk-by\x2dlabel-boot.device @@ -15,4 +17,4 @@ Type=oneshot Environment=LOG_LEVEL=info EnvironmentFile=/etc/manufacturing-client-config ExecStart=/usr/libexec/manufacturing-client-service -RemainAfterExit=yes \ No newline at end of file +RemainAfterExit=yes