1
0

feat: add distro type/release to target name

This commit is contained in:
dump_stack() 2023-05-17 12:58:14 +00:00
parent d45d5731a9
commit 6df94d7e15
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

3
pew.go
View File

@ -239,7 +239,8 @@ func build(flog zerolog.Logger, tmp string, ka config.Artifact,
ki config.KernelInfo, dockerTimeout time.Duration) (
outdir, outpath, output string, err error) {
target := fmt.Sprintf("%d_%s", rand.Int(), ki.KernelRelease)
target := fmt.Sprintf("%s-%s-%s",
ki.DistroType, ki.DistroRelease, ki.KernelVersion)
outdir = tmp + "/source"