local-server/cmd/dkl-local-server/ipxe.go

14 lines
212 B
Go
Raw Normal View History

2018-06-12 10:09:47 +00:00
package main
import (
"io"
"log"
)
func renderIPXE(out io.Writer, ctx *renderContext) error {
log.Printf("sending IPXE code for %q", ctx.Host.Name)
2018-12-10 10:59:24 +00:00
_, err := out.Write([]byte(ctx.Host.IPXE))
2018-06-12 10:09:47 +00:00
return err
}