[23.05] backport "luci-app-attendedsysupgrade: add x86 efi/bios case" (#6623)
authorMathew McBride <matt@bionicmessage.net>
Tue, 5 Dec 2023 14:12:03 +0000 (01:12 +1100)
committerGitHub <noreply@github.com>
Tue, 5 Dec 2023 14:12:03 +0000 (15:12 +0100)
commit138595a7b6918896cd7686bdbaeef44204a987ce
tree1e95b95f1e8a9bd583ea2a3c472d48b62696c842
parentcb55c0a7aa1ee6b47cd105835cab1a137fd9d18d
[23.05] backport "luci-app-attendedsysupgrade: add x86 efi/bios case" (#6623)

* 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>
(cherry picked from commit d7e905e83a11d59ea217cd37189040bd6c9d403e)

* luci-app-attendedsysupgrade: fix search for x86 target

The conditional is wrong. IndexOf returns a number and not true/false,
so it does not work.

Signed-off-by: Miguel Angel Mulero Martinez <migmul@gmail.com>
(cherry picked from commit 021c4394871e062964e1601775f4c951d0e2b878)

---------

Co-authored-by: Paul Spooren <mail@aparcar.org>
Co-authored-by: Miguel Angel Mulero Martinez <migmul@gmail.com>
applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js