浏览代码

Disable pci menu on ARM and EFI builds

pciscan only appears to work on legecy, so disable it as an option
on EFI and ARM builds
Antony Messerli 1 年之前
父节点
当前提交
016524bb65
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 4 0
      roles/netbootxyz/templates/menu/boot.cfg.j2
  2. 1 1
      roles/netbootxyz/templates/menu/menu.ipxe.j2

+ 4 - 0
roles/netbootxyz/templates/menu/boot.cfg.j2

@@ -84,12 +84,14 @@ set menu_live_arm 1
 set menu_windows 0
 set menu_utils 0
 set menu_utils_arm 1
+set menu_pci 0
 iseq ${platform} efi && goto efi ||
 goto architectures_end
 :efi
 set menu_bsd 0
 set menu_freedos 0
 set menu_unix 0
+set menu_pci 0
 goto architectures_end
 :architectures_end
 goto clouds
@@ -119,6 +121,7 @@ iseq ${platform} efi && set ipxe_disk netboot.xyz-metal-snp.efi || set ipxe_disk
 set menu_linux_i386 0
 set menu_freedos 0
 set menu_windows 0
+iseq ${platform} efi && set menu_pci 0 ||
 goto clouds_end
 
 :metal_arm64
@@ -129,6 +132,7 @@ set menu_freedos 0
 set menu_live 0
 set menu_windows 0
 set menu_utils 0
+set menu_pci 0
 goto clouds_end
 
 :clouds_end

+ 1 - 1
roles/netbootxyz/templates/menu/menu.ipxe.j2

@@ -63,7 +63,7 @@ iseq ${menu_utils_arm} 1 && item utils-arm ${space} Utilities (arm64) ||
 item change_arch ${space} Architecture: ${arch}
 item shell ${space} iPXE shell
 item netinfo ${space} Network card info
-item lspci ${space} PCI Device List
+iseq ${menu_pci} 1 && item lspci ${space} PCI Device List
 item about ${space} About netboot.xyz
 {% if sigs_menu | bool %}
 item --gap Signature Checks: