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 14, 2024
1 parent e6eec7b commit b81f70a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Type=simple
ExecStart=@BASE_BINDIR@/sh @BINDIR@/update-balena-supervisor
StandardOutput=null
StandardError=null
Requires=network-online.target
After=network-online.target

[Install]
Alias=update-resin-supervisor.service

0 comments on commit b81f70a

Please sign in to comment.