fdbf41e3f1
Backport https://github.com/fdo-rs/fido-device-onboard-rs/pull/676 Resolves: RHEL-38482
39 lines
1.4 KiB
Diff
39 lines
1.4 KiB
Diff
commit 52257aa8a389d681965f51cfbcaa454b75fe92a2 (HEAD -> fix-systemd-dependencies, origin/fix-systemd-dependencies)
|
|
Author: Miguel Martín <mmartinv@redhat.com>
|
|
Date: Wed Oct 2 09:43:23 2024 +0200
|
|
|
|
fix(systemd-units): run before powering off the system
|
|
|
|
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 <mmartinv@redhat.com>
|
|
|
|
diff --git a/dracut/52fdo/manufacturing-client.service b/dracut/52fdo/manufacturing-client.service
|
|
index 9ce9eacb..53268891 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
|