Merge pull request #6638 from McGiverGim/attended_sysupgrade_fix_x86

luci-app-attendedsysupgrade: fix search for x86 target
This commit is contained in:
Jo-Philipp Wich 2023-10-19 23:08:11 +02:00 committed by GitHub
commit bc37a550ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,7 +89,7 @@ return view.extend({
for (image of images) {
if (this.firmware.filesystem == image.filesystem) {
// x86 images can be combined-efi (EFI) or combined (BIOS)
if(this.firmware.target.indexOf("x86")) {
if(this.firmware.target.indexOf("x86") != -1) {
if (this.data.efi && image.type == 'combined-efi') {
return image;
} else if (image.type == 'combined') {