summaryrefslogtreecommitdiff
path: root/src/system
diff options
context:
space:
mode:
authorOleksandr Kuchmystyi <o.kuchmystyi@vyos.io>2026-02-10 16:29:06 +0300
committerOleksandr Kuchmystyi <o.kuchmystyi@vyos.io>2026-02-10 16:29:06 +0300
commit8262f78e0013291f747203e0b3768bb412bf1aed (patch)
treec7b146841e0a823deb9f18ffe78f281d3674a993 /src/system
parent911f8653a813868f2cf805a3a1662eaf16375188 (diff)
downloadvyos-1x-8262f78e0013291f747203e0b3768bb412bf1aed.tar.gz
vyos-1x-8262f78e0013291f747203e0b3768bb412bf1aed.zip
update-check: T7945: Improve reliability during early boot and error handling
During early boot not all resources are ready for HTTP request, so `vyos.version.get_remote_version` may fail once and the update check is then delayed for 12 hours, leaving the router unaware of updates. Fix by adding retries/backoff and improved error handling so transient startup network failures don't suppress update checks for the next interval.
Diffstat (limited to 'src/system')
-rwxr-xr-xsrc/system/vyos-system-update-check.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/system/vyos-system-update-check.py b/src/system/vyos-system-update-check.py
index 66a8b0d02..b7d1fc7c5 100755
--- a/src/system/vyos-system-update-check.py
+++ b/src/system/vyos-system-update-check.py
@@ -60,7 +60,7 @@ if __name__ == '__main__':
remote_version = jmespath.search('[0].version', remote_data)
if local_version != remote_version and remote_version:
call(f'wall -n "Update available: {remote_version} \nUpdate URL: {url}"')
- # MOTD used in /run/motd.d/10-update
+ # MOTD used in /run/motd.d/10-vyos-update
motd_file.parent.mkdir(exist_ok=True)
motd_file.write_text(f'---\n'
f'Current version: {local_version}\n'