Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
B #118: one-context-force breaks boot status
Browse files Browse the repository at this point in the history
We must make sure "one-context-force.service" is not run during boot
disk detection but on hotplug events.

When booting with a swap partition on the disk, the udev rules will
start the "one-context-force" service long before "one-context-local"
and "one-context".

This results in the system being in "degraded" state as reported by
"systemctl is-system-running".

* src/usr/lib/systemd/system/one-context-force.service##systemd.one:
  add conditions to run only on hotplug events.

Signed-off-by: Daniel Dehennin <[email protected]>
  • Loading branch information
baby-gnu authored and Vlastimil Holer committed Aug 14, 2019
1 parent ba786dd commit 6e243d8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Description=OpenNebula forced reconfiguration
After=one-context.service
Requisite=one-context.service
ConditionPathExists=/var/run/one-context/context.sh.local
ConditionPathExists=/var/run/one-context/context.sh.network

[Service]
Type=oneshot
Expand Down

0 comments on commit 6e243d8

Please sign in to comment.