1
0

Auto-generate rootfs image name

This commit is contained in:
2018-11-29 00:01:14 +00:00
parent fdb08ecf62
commit f81a4e38a1
2 changed files with 11 additions and 1 deletions

View File

@ -27,6 +27,12 @@ func (km KernelMask) DockerName() string {
return fmt.Sprintf("out_of_tree_%s_%s", distro, release)
}
func (km KernelMask) ImageName() string {
distro := strings.ToLower(km.DistroType.String())
release := strings.Replace(km.DistroRelease, ".", "", -1)
return fmt.Sprintf("%s_%s.img", distro, release)
}
type ArtifactType int
const (