From 87202912e871eeafe20ba24c5fcbf696ce5171ff Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Sat, 30 Dec 2023 13:59:07 +0000 Subject: T3476: Add option latest to add system image Add option `latest` for op-mode command `add system image` If the update check is configured we can get the remote `latest` version from conrfgure URL ``` set system update-check url 'https://example.com/version.json' ``` This way we can use "latest" option for image update: ``` add system image latest ``` --- op-mode-definitions/system-image.xml.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/system-image.xml.in b/op-mode-definitions/system-image.xml.in index c131087be..7b5260b4e 100644 --- a/op-mode-definitions/system-image.xml.in +++ b/op-mode-definitions/system-image.xml.in @@ -14,7 +14,7 @@ Add a new image to the system - /path/to/vyos-image.iso "http://example.com/vyos-image.iso" + /path/to/vyos-image.iso "http://example.com/vyos-image.iso" latest sudo ${vyos_op_scripts_dir}/image_installer.py --action add --image-path "${4}" -- cgit v1.2.3