mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 19:01:56 +00:00
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>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user