mirror of
https://github.com/danderson/netboot.git
synced 2025-10-16 18:11:21 +02:00
Explain which DHCP response is missing
Include better debugging messages as to if you didn't receive any DHCP response, or you're missing the ProxyDHCP boot configuration to try and determine what's going wrong.
This commit is contained in:
parent
fc62328e66
commit
69eb97d03f
@ -22,12 +22,21 @@ set user-class pixiecore
|
||||
# Try to get a filename from ProxyDHCP, retrying a couple of times if
|
||||
# we fail.
|
||||
:loop
|
||||
dhcp && isset ${filename} || goto retry
|
||||
dhcp || goto nodhcp
|
||||
isset ${filename} || goto nobootconfig
|
||||
goto boot
|
||||
|
||||
:nodhcp
|
||||
echo No DHCP response, retrying (attempt ${x}/${attempts})
|
||||
goto retry
|
||||
|
||||
:nobootconfig
|
||||
echo No ProxyDHCP response, retrying (attempt ${x}/${attempts})
|
||||
goto retry
|
||||
|
||||
:retry
|
||||
iseq ${x} ${attempts} && goto fail ||
|
||||
inc x
|
||||
echo No ProxyDHCP response, retrying (attempt ${x}/${attempts})
|
||||
goto loop
|
||||
|
||||
# Got a filename from ProxyDHCP, that's the actual boot script,
|
||||
|
Loading…
x
Reference in New Issue
Block a user