image-builder: fix cross-arch uploading
This commit fixes the cross-arch uploading in the most simple case by reading the `--arch` when `image-builder build --upload` is used. Note that this is not a complete fix as it will not take boot mode into account nor will it (by default) DTRT when `image-builder upload` is used on a previously build images for a different architecture. Thanks to `FrostyX` for reporting the issue.
This commit is contained in:
parent
f4f8b557a5
commit
2996bbc0d1
3 changed files with 52 additions and 31 deletions
|
|
@ -477,6 +477,7 @@ operating systems like Fedora, CentOS and RHEL with easy customizations support.
|
|||
uploadCmd.Flags().String("aws-ami-name", "", "name for the AMI in AWS (only for type=ami)")
|
||||
uploadCmd.Flags().String("aws-bucket", "", "target S3 bucket name for intermediate storage when creating AMI (only for type=ami)")
|
||||
uploadCmd.Flags().String("aws-region", "", "target region for AWS uploads (only for type=ami)")
|
||||
uploadCmd.Flags().String("arch", "", "upload for the given architecture")
|
||||
rootCmd.AddCommand(uploadCmd)
|
||||
|
||||
buildCmd := &cobra.Command{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue