summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorDaniel Nilsson <daniel.nilsson94@outlook.com>2024-06-16 17:56:52 +0200
committerPaul Spooren <mail@aparcar.org>2024-06-16 18:49:21 +0200
commit8860ca069c04e3dbd3f107f1526f2901f1085902 (patch)
treee1d1e1df2df30794eb74b40c3d5d0eeaf127dd82 /applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources
parent264e465f7068b291b33b3dedd95b9443c6cf4df7 (diff)
luci-app-attendedsysupgrade: enforce correct imagebuilder version
By passing the version_code parameter, we can error out if the imagebuilder that responded to the request isn't the same, mirroring the current behavior of auc. Signed-off-by: Daniel Nilsson <daniel.nilsson94@outlook.com>
Diffstat (limited to 'applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources')
-rw-r--r--applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js
index 0e6ae9d20c..3d40f992fa 100644
--- a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js
+++ b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js
@@ -476,6 +476,7 @@ return view.extend({
request: {
profile,
version: candidates[0][0],
+ version_code: revision,
packages: Object.keys(packages).sort(),
},
};
@@ -536,6 +537,7 @@ return view.extend({
...firmware,
packages: mapdata.request.packages,
version: mapdata.request.version,
+ version_code: mapdata.request.version_code,
profile: mapdata.request.profile
};
this.pollFn = L.bind(function () {