From 4e411248b126974e724c22c6ad282a48357cf53c Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 24 Feb 2017 15:30:38 -0800 Subject: [PATCH] Improve the comment explaining why handleBooting returns an iPXE script. --- pixiecore/http.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pixiecore/http.go b/pixiecore/http.go index bd6dba9..1bad52f 100644 --- a/pixiecore/http.go +++ b/pixiecore/http.go @@ -153,10 +153,9 @@ func (s *Server) handleFile(w http.ResponseWriter, r *http.Request) { } func (s *Server) handleBooting(w http.ResponseWriter, r *http.Request) { - // This should not always errors out. - // if we send http.StatusInternalServerError iPXE will get a image not found error - // http.Error(w, "", http.StatusInternalServerError) - // return a empty commented script + // Return a no-op boot script, to satisfy iPXE. It won't get used, + // the boot script deletes this image immediately after + // downloading. fmt.Fprintf(w, "# Booting") macStr := r.URL.Query().Get("mac")