From 391e115c559e2399a57743aaecc60a09193ecda0 Mon Sep 17 00:00:00 2001 From: Eric Fahlgren Date: Sun, 17 Nov 2024 08:33:56 -0800 Subject: [PATCH] luci-app-attendedsysupgrade: make image selection consistent across all EFI targets Image selection for armsr and loongarch is currently broken, as they are not recognized as a "combined" image target. Add a list of the appropriate targets to make maintenance easy. Signed-off-by: Eric Fahlgren --- .../resources/view/attendedsysupgrade/overview.js | 5 +++-- 1 file changed, 3 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 08856611d8..83161215da 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 @@ -83,8 +83,9 @@ return view.extend({ return (e.filesystem == firmware.filesystem); } var typeFilter = function(e) { - if (firmware.target.indexOf("x86") != -1) { - // x86 images can be combined-efi (EFI) or combined (BIOS) + let efi_targets = ['armsr', 'loongarch', 'x86']; + let efi_capable = efi_targets.some((tgt) => firmware.target.startsWith(tgt)); + if (efi_capable) { if (data.efi) { return (e.type == 'combined-efi'); } else { -- 2.30.2