Skip to content

Commit

Permalink
B OpenNebula#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 committed Jul 11, 2019
1 parent 7acde45 commit 1de793b
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 1de793b

Please sign in to comment.