Skip to content

Commit

Permalink
update-balena-supervisor: add network-online dependency
Browse files Browse the repository at this point in the history
There is a race condition present when purging a device and rebooting. If "update-balena-supervisor" comes up before the device can connect to the internet, it will fail to pull the supervisor image. As this service stops "balena-supervisor.service" , this isn't attempted again for at least 15 min = (up to 1 hour) when the "update-balena-supervisor.timer" triggers it.

Change-type: patch
Signed-off-by: Ryan Cooke <ryan@balena.io>
  • Loading branch information
rcooke-warwick committed Aug 15, 2024
1 parent e6eec7b commit 562f963
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ Description=Balena supervisor updater
Requires=\
balena.service \
bind-etc-balena-supervisor.service \
tmp.mount
tmp.mount \
network-online.target
Wants=\
mnt-boot.mount \
balena-supervisor.service
Expand All @@ -12,7 +13,8 @@ After=\
tmp.mount \
mnt-boot.mount \
bind-etc-balena-supervisor.service \
balena-supervisor.service
balena-supervisor.service \
network-online.target

[Service]
Type=simple
Expand Down

0 comments on commit 562f963

Please sign in to comment.