fido-device-onboard/0002-Fix-systemd-units-run-before-poweroff.patch

39 lines
1.4 KiB
Diff
Raw Permalink Normal View History

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