Skip to content

Commit

Permalink
feat: introduce debug shell
Browse files Browse the repository at this point in the history
Currently Servers time out while chain'ing to http://169.254.169.254/latest/user-data.
It is also not possible to ping them, as that results ins a Request timeout for icmp_seq.

I therefore introduced a short timeout for entering into the manual iPXE Shell for debugging the environment - this might be removed later on.
  • Loading branch information
zetaron committed Nov 9, 2020
1 parent a7d21ad commit 9255fa5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/config/cloud/hetzner.ipxe
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

echo Hetzner Cloud - iPXE boot via user-data
echo CPU: ${cpuvendor} ${cpumodel}

# Give user a chance to enter the shell
prompt --key 0x02 --timeout 2000 Press Ctrl-B for the iPXE shell... || goto no_shell
shell
exit

:no_shell

# Perform automated system Boot

ifstat ||
dhcp ||
route ||
Expand Down

0 comments on commit 9255fa5

Please sign in to comment.