boot-v2.iso: initial commit

This commit is contained in:
Mikaël Cluseau
2022-07-21 16:03:39 +02:00
parent 18d3c42fc7
commit 0fcd219268
4 changed files with 185 additions and 1 deletions

View File

@ -94,6 +94,10 @@ func (ws *wsHost) register(rws *restful.WebService, alterRB func(*restful.RouteB
b("bootstrap.tar").
Produces(mime.TAR).
Doc("Get the " + ws.hostDoc + "'s bootstrap seed archive"),
b("boot-v2.iso").
Produces(mime.ISO).
Param(cmdlineParam).
Doc("Get the " + ws.hostDoc + "'s boot CD-ROM image (v2)"),
} {
alterRB(rb)
rws.Route(rb)
@ -192,6 +196,8 @@ func renderHost(w http.ResponseWriter, r *http.Request, what string, host *local
err = renderCtx(w, r, ctx, what, buildInitrdV2)
case "bootstrap.tar":
err = renderCtx(w, r, ctx, what, buildBootstrap)
case "boot-v2.iso":
err = renderCtx(w, r, ctx, what, buildBootISOv2)
default:
http.NotFound(w, r)