platform: add special GCE platform format
GCE requires an archive with specific (tar) options, so we should have a platform format defined separately for it. Add the GCE image types to the x86_64 arch using the new platform format.
This commit is contained in:
parent
3fc8fd2cb9
commit
8c361e510d
2 changed files with 15 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ const (
|
|||
FORMAT_QCOW2
|
||||
FORMAT_VMDK
|
||||
FORMAT_VHD
|
||||
FORMAT_GCE
|
||||
)
|
||||
|
||||
func (a Arch) String() string {
|
||||
|
|
@ -46,6 +47,8 @@ func (f ImageFormat) String() string {
|
|||
return "vmdk"
|
||||
case FORMAT_VHD:
|
||||
return "vhd"
|
||||
case FORMAT_GCE:
|
||||
return "gce"
|
||||
default:
|
||||
panic("invalid image format")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue