diff --git a/Dockerfile b/Dockerfile index c7f55d7..7b916ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # ------------------------------------------------------------------------ -from mcluseau/golang-builder:1.19.0 as build +from mcluseau/golang-builder:1.19.4 as build # ------------------------------------------------------------------------ from debian:stretch diff --git a/cmd/dkl-local-server/boot-img.go b/cmd/dkl-local-server/boot-img.go index 0261e06..71aa088 100644 --- a/cmd/dkl-local-server/boot-img.go +++ b/cmd/dkl-local-server/boot-img.go @@ -3,6 +3,7 @@ package main import ( "archive/tar" "compress/gzip" + "flag" "fmt" "io" "io/ioutil" @@ -56,8 +57,10 @@ func buildBootImgGZ(out io.Writer, ctx *renderContext) (err error) { return } +var grubSupportVersion = flag.String("grub-support", "1.0.1", "GRUB support version") + func setupBootImage(bootImg *os.File, ctx *renderContext) (err error) { - path, err := ctx.distFetch("grub-support", "1.0.0") + path, err := ctx.distFetch("grub-support", *grubSupportVersion) if err != nil { return }