瀏覽代碼

Adds an option in Utils to Test ISOs with memdisk

Antony Messerli 9 年之前
父節點
當前提交
cb649e1d98
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/utils.ipxe

+ 8 - 0
src/utils.ipxe

@@ -13,6 +13,7 @@ item partition_wizard ${space} Partition Wizard
 item pogostick ${space} Pogostick - Offline Windows Password and Registry Editor
 item supergrub ${space} Super Grub2 Disk
 item --gap netboot.xyz tools:
+item testdistro ${space} Test Distribution ISO
 item testpr ${space} Test netboot.xyz branch
 choose --default ${menu} menu || goto utils_exit
 echo ${cls}
@@ -93,6 +94,13 @@ initrd https://forja.cenatic.es/frs/download.php/file/1844/super_grub2_disk_hybr
 boot
 goto utils_exit
 
+:testdistro
+echo This option will allow you to test booting an ISO using memdisk.
+echo -n Specify ISO you want to test: ${} && read distro_iso
+kernel ${memdisk} iso raw
+initrd ${distro_iso}
+boot
+
 :testpr
 clear github_user
 clear github_hash