Skip to content

Commit

Permalink
luci-app-attendedsysupgrade: add x86 efi/bios case
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
aparcar committed Sep 22, 2023
1 parent 38bc206 commit d7e905e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d7e905e

Please sign in to comment.