composer: add provisional multi-arch support
The pipeline generation now takes the architecture as an argument. Currently only x86_64 is supported. The architecture is detected at start-up, and passed down to each pipeline translation. For osbuild-pipeline we now requrie the architecture to be passed in. Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
dcc9cdedee
commit
d33fc5f010
11 changed files with 48 additions and 20 deletions
|
|
@ -14,9 +14,11 @@ import (
|
|||
func main() {
|
||||
var format string
|
||||
var blueprintArg string
|
||||
var archArg string
|
||||
var distroArg string
|
||||
flag.StringVar(&format, "output-format", "qcow2", "output format")
|
||||
flag.StringVar(&format, "output-format", "", "output format")
|
||||
flag.StringVar(&blueprintArg, "blueprint", "", "blueprint to translate")
|
||||
flag.StringVar(&archArg, "arch", "", "architecture to create image for")
|
||||
flag.StringVar(&distroArg, "distro", "", "distribution to create")
|
||||
flag.Parse()
|
||||
|
||||
|
|
@ -55,7 +57,7 @@ func main() {
|
|||
panic(err.Error())
|
||||
}
|
||||
|
||||
pipeline, err := d.Pipeline(blueprint, checksums, format)
|
||||
pipeline, err := d.Pipeline(blueprint, checksums, archArg, format)
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue