distro: add rhel82
This takes a different approach to outputs and customizations, which is much shorter and duplicates less code. This uses links to internal repositories for now, because 8.2 hasn't been released yet. Add a `distro` flag to `osbuild-pipeline`.
This commit is contained in:
parent
df74737194
commit
da311f13eb
8 changed files with 726 additions and 7 deletions
|
|
@ -10,13 +10,16 @@ import (
|
|||
|
||||
"github.com/osbuild/osbuild-composer/internal/distro"
|
||||
_ "github.com/osbuild/osbuild-composer/internal/distro/fedora30"
|
||||
_ "github.com/osbuild/osbuild-composer/internal/distro/rhel82"
|
||||
)
|
||||
|
||||
func main() {
|
||||
var format string
|
||||
var blueprintArg string
|
||||
var distroArg string
|
||||
flag.StringVar(&format, "output-format", "qcow2", "output format")
|
||||
flag.StringVar(&blueprintArg, "blueprint", "", "blueprint to translate")
|
||||
flag.StringVar(&distroArg, "distro", "", "distribution to create")
|
||||
flag.Parse()
|
||||
|
||||
blueprint := &blueprint.Blueprint{}
|
||||
|
|
@ -31,7 +34,7 @@ func main() {
|
|||
}
|
||||
}
|
||||
|
||||
d := distro.New("")
|
||||
d := distro.New(distroArg)
|
||||
pipeline, err := d.Pipeline(blueprint, format)
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue