Skip to content

Commit

Permalink
fix(systemd-units): run before powering off the system
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mmartinv committed Oct 2, 2024
1 parent b775d03 commit 52257aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dracut/52fdo/manufacturing-client.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -15,4 +17,4 @@ Type=oneshot
Environment=LOG_LEVEL=info
EnvironmentFile=/etc/manufacturing-client-config
ExecStart=/usr/libexec/manufacturing-client-service
RemainAfterExit=yes
RemainAfterExit=yes

0 comments on commit 52257aa

Please sign in to comment.