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

Adding debug console to ipxe disks

Antony Messerli 9 жил өмнө
parent
commit
13b176a02a

+ 8 - 1
ipxe/netboot.xyz-dhcp

@@ -3,9 +3,11 @@
 :start
 set version 1
 echo netboot.xyz iPXE loader v${version}
+goto dhcp
 
 :dhcp  
 dhcp || goto static
+prompt --key m --timeout 4000 Hit the ${bold}d${boldoff} key to open the debug console && goto debug || goto start
 goto start
 
 :static
@@ -21,7 +23,7 @@ echo Attempting chainload of netboot.xyz...
 goto start || goto failsafe
 
 :start
-chain http://cdn.netboot.xyz/menu.ipxe
+chain --autofree http://cdn.netboot.xyz/menu.ipxe
 goto boot
 
 :failsafe
@@ -30,3 +32,8 @@ goto start
 
 :boot
 sanboot --no-describe --drive 0x80
+
+:debug
+echo Type "exit" to return to menu
+shell
+goto start

+ 8 - 1
ipxe/netboot.xyz-static

@@ -3,6 +3,8 @@
 :start
 set version 1
 echo netboot.xyz iPXE loader v${version}
+prompt --key m --timeout 4000 Hit the ${bold}d${boldoff} key to open the debug console && goto debug || goto start
+goto static
 
 :static
 echo Please enter in the networking information of your Cloud Server:
@@ -17,7 +19,7 @@ echo Attempting chainload of netboot.xyz...
 goto start || goto failsafe
 
 :start
-chain http://cdn.netboot.xyz/menu.ipxe
+chain --autofree http://cdn.netboot.xyz/menu.ipxe
 goto boot
 
 :failsafe
@@ -26,3 +28,8 @@ goto start
 
 :boot
 sanboot --no-describe --drive 0x80
+
+:debug
+echo Type "exit" to return to menu
+shell
+goto start