luci icon indicating copy to clipboard operation
luci copied to clipboard

luci-app-attendedsysupgrade: the `type` is treated incorrectly or not in the way that is returned by `sysupgrade.openwrt.org`

Open ayufan opened this issue 3 years ago • 0 comments

I do own Turris Omnia that runs stock OpenWrt.

Unsure if this is a problem of luci-app-attendedsysupgrade or sysupgrade.openwrt.org service.

Problem

When trying the luci-app-attendedsysupgrade the incorrect package is returned to flash (initramfs, instead of sysupgrade).

Reason

  1. The overview.js does check image.type if it is sysupgrade
  2. In this particular case the type is specified as openwrt-22 or omnia-medkit-openwrt-22
  3. Since no matching sysupgrade is found, the last item is returned due to var image; for (image of res.images) {
  4. This is why the omnia-medkit-openwrt-22.03.0-rc6-7de42661072d-mvebu-cortexa9-cznic_turris-omnia-initramfs.tar.gz is being shown.

Reference

  • Example build: https://sysupgrade.openwrt.org/api/v1/build/4f23c7b84e838278443ff453acfb9597 (it might be recycled)

Images

image image

ayufan avatar Aug 22 '22 17:08 ayufan