allow configuration of grub-support version

This commit is contained in:
Mikaël Cluseau 2022-12-22 00:28:54 +01:00
parent 93b32eb52a
commit 76e02c6f31
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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
}