distro/rhel: remove legacy member from architecture struct
Remove the `legacy` from `architecture` struct, since this information is already contained in the platform associated with the image. This reflects changes which were done in Fedora when it was ported to the "new" image definitions, but were not ported to RHEL. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
dd6f9fdbcf
commit
3569936aba
5 changed files with 1 additions and 8 deletions
|
|
@ -147,7 +147,6 @@ type architecture struct {
|
|||
name string
|
||||
imageTypes map[string]distro.ImageType
|
||||
imageTypeAliases map[string]string
|
||||
legacy string
|
||||
}
|
||||
|
||||
func (a *architecture) Name() string {
|
||||
|
|
@ -579,7 +578,6 @@ func newDistro(distroName string) distro.Distro {
|
|||
x86_64 := architecture{
|
||||
name: distro.X86_64ArchName,
|
||||
distro: &rd,
|
||||
legacy: "i386-pc",
|
||||
}
|
||||
|
||||
x86_64.addImageTypes(
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ type architecture struct {
|
|||
name string
|
||||
imageTypes map[string]distro.ImageType
|
||||
imageTypeAliases map[string]string
|
||||
legacy string
|
||||
}
|
||||
|
||||
func (a *architecture) Name() string {
|
||||
|
|
|
|||
|
|
@ -196,7 +196,6 @@ func newDistro(name string, minor int) *distribution {
|
|||
x86_64 := architecture{
|
||||
name: distro.X86_64ArchName,
|
||||
distro: &rd,
|
||||
legacy: "i386-pc",
|
||||
}
|
||||
|
||||
aarch64 := architecture{
|
||||
|
|
@ -206,7 +205,6 @@ func newDistro(name string, minor int) *distribution {
|
|||
|
||||
ppc64le := architecture{
|
||||
distro: &rd,
|
||||
legacy: "powerpc-ieee1275",
|
||||
name: distro.Ppc64leArchName,
|
||||
}
|
||||
s390x := architecture{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ type architecture struct {
|
|||
name string
|
||||
imageTypes map[string]distro.ImageType
|
||||
imageTypeAliases map[string]string
|
||||
legacy string
|
||||
}
|
||||
|
||||
func (a *architecture) Name() string {
|
||||
|
|
|
|||
|
|
@ -188,7 +188,6 @@ func newDistro(name string, minor int) *distribution {
|
|||
x86_64 := architecture{
|
||||
name: distro.X86_64ArchName,
|
||||
distro: &rd,
|
||||
legacy: "i386-pc",
|
||||
}
|
||||
|
||||
aarch64 := architecture{
|
||||
|
|
@ -199,8 +198,8 @@ func newDistro(name string, minor int) *distribution {
|
|||
ppc64le := architecture{
|
||||
distro: &rd,
|
||||
name: distro.Ppc64leArchName,
|
||||
legacy: "powerpc-ieee1275",
|
||||
}
|
||||
|
||||
s390x := architecture{
|
||||
distro: &rd,
|
||||
name: distro.S390xArchName,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue