1
0
Эх сурвалжийг харах

Add initial support for testing new branches from netboot.xyz

Antony Messerli 9 жил өмнө
parent
commit
277acebfd6
1 өөрчлөгдсөн 13 нэмэгдсэн , 5 устгасан
  1. 13 5
      src/utils.ipxe

+ 13 - 5
src/utils.ipxe

@@ -5,6 +5,7 @@ item --gap Utilities:
 item clonezilla ${space} Clonezilla
 item hdt ${space} Hardware Detection Tool
 item memtest ${space} MemTest86+
+item testpr ${space} Test netboot.xyz branch
 choose --default ${menu} menu || goto utils_exit
 echo ${cls}
 goto ${menu} ||
@@ -37,11 +38,18 @@ echo Press any key to continue ...
 read a
 goto utils_exit
 
-choose --timeout ${timeout} --default ${menu} menu || goto utils_exit
-echo ${cls}
-goto ${menu} ||
-chain ${menu}.ipxe || goto error
-goto linux_exit
+:testpr
+echo This will chainload into a testing branch of netboot.xyz.  You'll need to enter
+echo your Github User and the first part of the commit hash of the commit you want to
+echo test.  This assumes you are testing from your own fork.
+echo
+echo Specify Github User Name: && read github_user
+echo Specify shortened commit hash of netboot.xyz to be tested ( i.e. 30b7ca ): && read github_hash
+echo
+echo Attempting to chainload:
+echo https://raw.githubusercontent.com/${github_user}/netboot.xyz/${github_hash}/src/menu.ipxe
+chain --autofree https://raw.githubusercontent.com/${github_user}/netboot.xyz/${github_hash}/src/menu.ipxe || goto error
+goto utils_exit
 
 :utils_exit
 clear menu