distro/f30: drop liveiso support

This never worked, either here or in lorax. Drop it so it is not
shown in the UI.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2019-11-26 01:02:08 +01:00 committed by Lars Karlitski
parent d1d3768d9d
commit c6e73e65a5
3 changed files with 0 additions and 39 deletions

View file

@ -1,31 +0,0 @@
package fedora30
import (
"github.com/osbuild/osbuild-composer/internal/blueprint"
"github.com/osbuild/osbuild-composer/internal/pipeline"
)
type liveIsoOutput struct{}
func (t *liveIsoOutput) translate(b *blueprint.Blueprint) (*pipeline.Pipeline, error) {
// TODO!
p := getF30Pipeline()
addF30SELinuxStage(p)
addF30QemuAssembler(p, "raw", t.getName())
if b.Customizations != nil {
err := customizeAll(p, b.Customizations)
if err != nil {
return nil, err
}
}
return p, nil
}
func (t *liveIsoOutput) getName() string {
return "image.iso"
}
func (t *liveIsoOutput) getMime() string {
return "application/x-iso9660-image"
}

View file

@ -24,7 +24,6 @@ func init() {
outputs: map[string]output{
"ami": &amiOutput{},
"ext4-filesystem": &ext4Output{},
"live-iso": &liveIsoOutput{},
"partitioned-disk": &diskOutput{},
"qcow2": &qcow2Output{},
"openstack": &openstackOutput{},

View file

@ -12,7 +12,6 @@ func TestListOutputFormats(t *testing.T) {
want := []string{
"ami",
"ext4-filesystem",
"live-iso",
"openstack",
"partitioned-disk",
"qcow2",
@ -50,12 +49,6 @@ func TestFilenameFromType(t *testing.T) {
want: "filesystem.img",
want1: "application/octet-stream",
},
{
name: "live-iso",
args: args{"live-iso"},
want: "image.iso",
want1: "application/x-iso9660-image",
},
{
name: "openstack",
args: args{"openstack"},