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>
This commit is contained in:
Daniel Nilsson
2024-06-16 17:56:52 +02:00
committed by Paul Spooren
parent 264e465f70
commit 8860ca069c

View File

@@ -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 () {