From 69eb97d03f40893210b7f2514ee428c7fff9fff8 Mon Sep 17 00:00:00 2001 From: Perry Lorier Date: Sun, 25 Mar 2018 00:10:02 +0000 Subject: [PATCH] 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. --- pixiecore/boot.ipxe | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pixiecore/boot.ipxe b/pixiecore/boot.ipxe index e609510..470c642 100644 --- a/pixiecore/boot.ipxe +++ b/pixiecore/boot.ipxe @@ -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,