diff options
author | Paul Spooren <mail@aparcar.org> | 2023-09-21 20:05:05 +0200 |
---|---|---|
committer | Paul Spooren <mail@aparcar.org> | 2023-09-22 18:45:57 +0200 |
commit | d7e905e83a11d59ea217cd37189040bd6c9d403e (patch) | |
tree | 303f472cff4a69d371c1fc172cdeb878cb9efb91 /applications/luci-app-attendedsysupgrade | |
parent | 38bc206abbbe21a772a95a1c62d83423f4289a02 (diff) |
luci-app-attendedsysupgrade: add x86 efi/bios case
x86 is the only target that allows you to install either EFI or BIOS
images, thereby add an extra check for that.
Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to 'applications/luci-app-attendedsysupgrade')
-rw-r--r-- | applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js | 7 |
1 files changed, 5 insertions, 2 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 af0b1eef7a..7b067d7e8d 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 @@ -88,8 +88,11 @@ return view.extend({ let image; for (image of images) { if (this.firmware.filesystem == image.filesystem) { - if (this.data.efi) { - if (image.type == 'combined-efi') { + // x86 images can be combined-efi (EFI) or combined (BIOS) + if(this.firmware.target.indexOf("x86")) { + if (this.data.efi && image.type == 'combined-efi') { + return image; + } else if (image.type == 'combined') { return image; } } else { |