distro: rename openstack and vmdk images to match lorax

This commit is contained in:
Lars Karlitski 2019-12-16 01:01:46 +01:00
parent 5f8f417f65
commit 73641ea904
10 changed files with 24 additions and 24 deletions

View file

@ -156,7 +156,7 @@ func New() *Fedora30 {
}
r.outputs["openstack"] = output{
Name: "image.qcow2",
Name: "disk.qcow2",
MimeType: "application/x-qemu-disk",
Packages: []string{
"@Core",
@ -175,7 +175,7 @@ func New() *Fedora30 {
},
KernelOptions: "ro biosdevname=0 net.ifnames=0",
Bootable: true,
Assembler: func(uefi bool) *pipeline.Assembler { return r.qemuAssembler("qcow2", "image.qcow2", uefi) },
Assembler: func(uefi bool) *pipeline.Assembler { return r.qemuAssembler("qcow2", "disk.qcow2", uefi) },
}
r.outputs["tar"] = output{
@ -198,7 +198,7 @@ func New() *Fedora30 {
}
r.outputs["vhd"] = output{
Name: "image.vhd",
Name: "disk.vhd",
MimeType: "application/x-vhd",
Packages: []string{
"@Core",
@ -216,7 +216,7 @@ func New() *Fedora30 {
},
KernelOptions: "ro biosdevname=0 net.ifnames=0",
Bootable: true,
Assembler: func(uefi bool) *pipeline.Assembler { return r.qemuAssembler("vpc", "image.vhd", uefi) },
Assembler: func(uefi bool) *pipeline.Assembler { return r.qemuAssembler("vpc", "disk.vhd", uefi) },
}
r.outputs["vmdk"] = output{

View file

@ -51,7 +51,7 @@ func TestFilenameFromType(t *testing.T) {
{
name: "openstack",
args: args{"openstack"},
want: "image.qcow2",
want: "disk.qcow2",
want1: "application/x-qemu-disk",
},
{
@ -75,7 +75,7 @@ func TestFilenameFromType(t *testing.T) {
{
name: "vhd",
args: args{"vhd"},
want: "image.vhd",
want: "disk.vhd",
want1: "application/x-vhd",
},
{

View file

@ -276,7 +276,7 @@ func New() *RHEL82 {
}
r.outputs["openstack"] = output{
Name: "image.qcow2",
Name: "disk.qcow2",
MimeType: "application/x-qemu-disk",
Packages: []string{
// Defaults
@ -299,7 +299,7 @@ func New() *RHEL82 {
},
Bootable: true,
KernelOptions: "ro net.ifnames=0",
Assembler: func(uefi bool) *pipeline.Assembler { return r.qemuAssembler("qcow2", "image.qcow2", 3*GigaByte, uefi) },
Assembler: func(uefi bool) *pipeline.Assembler { return r.qemuAssembler("qcow2", "disk.qcow2", 3*GigaByte, uefi) },
}
r.outputs["tar"] = output{
@ -327,7 +327,7 @@ func New() *RHEL82 {
}
r.outputs["vhd"] = output{
Name: "image.vhd",
Name: "disk.vhd",
MimeType: "application/x-vhd",
Packages: []string{
// Defaults
@ -363,7 +363,7 @@ func New() *RHEL82 {
DefaultTarget: "multi-user.target",
Bootable: true,
KernelOptions: "ro biosdevname=0 rootdelay=300 console=ttyS0 earlyprintk=ttyS0 net.ifnames=0",
Assembler: func(uefi bool) *pipeline.Assembler { return r.qemuAssembler("vpc", "image.vhd", 3*GigaByte, uefi) },
Assembler: func(uefi bool) *pipeline.Assembler { return r.qemuAssembler("vpc", "disk.vhd", 3*GigaByte, uefi) },
}
r.outputs["vmdk"] = output{

View file

@ -51,7 +51,7 @@ func TestFilenameFromType(t *testing.T) {
{
name: "openstack",
args: args{"openstack"},
want: "image.qcow2",
want: "disk.qcow2",
want1: "application/x-qemu-disk",
},
{
@ -75,7 +75,7 @@ func TestFilenameFromType(t *testing.T) {
{
name: "vhd",
args: args{"vhd"},
want: "image.vhd",
want: "disk.vhd",
want1: "application/x-vhd",
},
{