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:
Perry Lorier 2018-03-25 00:10:02 +00:00 committed by Dave Anderson
parent fc62328e66
commit 69eb97d03f

View File

@ -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,