Adds MSVSphere 9.1 support

i9-beta changed/i9/osbuild-composer-62.1-1.el9.inferit
Eugene Zamriy 2 years ago
parent 3790e75cdc
commit 615812790b
Signed by: ezamriy
GPG Key ID: 7EBF95C7DCFA496C

@ -0,0 +1,87 @@
From 04f9a1a06ede7a2265b65130ad1b68942a2c0eb3 Mon Sep 17 00:00:00 2001
From: Eugene Zamriy <ezamriy@msvsphere.ru>
Date: Thu, 30 Mar 2023 18:17:50 +0300
Subject: [PATCH] Add MSVSphere 9.1 support
---
internal/distro/rhel9/distro.go | 20 ++++++++++++++++++++
internal/distroregistry/distroregistry.go | 1 +
repositories/msvsphere-91.json | 16 ++++++++++++++++
3 files changed, 37 insertions(+)
create mode 100644 repositories/msvsphere-91.json
diff --git a/internal/distro/rhel9/distro.go b/internal/distro/rhel9/distro.go
index b4814c3..60faf2e 100644
--- a/internal/distro/rhel9/distro.go
+++ b/internal/distro/rhel9/distro.go
@@ -132,6 +132,18 @@ var distroMap = map[string]distribution{
runner: "org.osbuild.centos9",
defaultImageConfig: defaultDistroImageConfig,
},
+ "msvsphere-91": {
+ name: "msvsphere-91",
+ product: "MSVSphere",
+ osVersion: "9.1",
+ releaseVersion: "9",
+ modulePlatformID: "platform:el9",
+ vendor: "msvsphere",
+ ostreeRefTmpl: "msvsphere/9/%s/edge",
+ isolabelTmpl: "MSVSphere-9-1-0-BaseOS-%s",
+ runner: "org.osbuild.rhel91",
+ defaultImageConfig: defaultDistroImageConfig,
+ },
}
func (d *distribution) Name() string {
@@ -648,6 +660,14 @@ func NewCentosHostDistro(name, modulePlatformID, ostreeRef string) distro.Distro
return newDistro("centos-9")
}
+func NewMSVSphere() distro.Distro {
+ return newDistro("msvsphere-91")
+}
+
+func NewMSVSphereHostDistro(name, modulePlatformID, ostreeRef string) distro.Distro {
+ return newDistro("msvsphere-91")
+}
+
func newDistro(distroName string) distro.Distro {
const GigaByte = 1024 * 1024 * 1024
diff --git a/internal/distroregistry/distroregistry.go b/internal/distroregistry/distroregistry.go
index 586d78a..bca7dce 100644
--- a/internal/distroregistry/distroregistry.go
+++ b/internal/distroregistry/distroregistry.go
@@ -28,6 +28,7 @@ var supportedDistros = []supportedDistro{
{rhel9.New, rhel9.NewHostDistro},
{rhel9.NewRHEL91, rhel9.NewRHEL91HostDistro},
{rhel9.NewCentos, rhel9.NewCentosHostDistro},
+ {rhel9.NewMSVSphere, rhel9.NewMSVSphereHostDistro},
}
type supportedDistro struct {
diff --git a/repositories/msvsphere-91.json b/repositories/msvsphere-91.json
new file mode 100644
index 0000000..114369e
--- /dev/null
+++ b/repositories/msvsphere-91.json
@@ -0,0 +1,16 @@
+{
+ "x86_64": [
+ {
+ "name": "baseos",
+ "baseurl": "https://repo.msvsphere.ru/msvsphere/9.1/BaseOS/x86_64/os/",
+ "gpgkey": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQINBGPvra8BEAC06qzoXEPc0vEThWkSLK2TdSmQnJuVePkP8dLPGb7BXN2eM+/R\niefFDWihMD6Xc5cDnNkPdkqUgOvy+LwQJmOnsXx16MvHtX0M2hQ31VHouslULtZN\nfFhfBZK1e6/RCWhrAcAUcbW3/L2wS2yiz9jFXDHhzi4Xa1iVZKXN0QtsebZfe6Fq\nUC1ERGgYjnjMyJnIJbcpJQLvbSgW4BC9sC0JM+HiIpsLsHZuYPsxwQuV3Drn6Pa4\nAM/jgR5Jgm8n8/eQva+jYOurhUdDXQAUYVvD4BWB4LKhkuWbEZktavUhRenExEst\nYVfZ//G3wJ+fpfTjvYwv9o64sxDWC8zMxNeYyKz/ql+lYq17zy9cTQXpb4NCH2Vg\n2uW8oqbMpbrIzPGhMengBEk0+gwg+a8+KKr95LhxeBOpkG/DsbNNLYOidMl4z+vl\nexQFkkgQ/42byw3Q+ug8RpNUT9iB01TKSq2YX+mGAv2MYDvTK2rsZ2UGTpbSkqIF\nXrlXtV/zOeAFitYW9nZxtM1PG699hyoXavOfa90+xx28ehPAZDGE3nn1NU5Ot/U6\n4srGHsQ5gZaUlZq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IGJJ5S6PVs/8Y\nBOdTTuLG2uwALRPe5wLUNw7aIbxYBcZ26boKRnN9FPNUjxahRpVKXPigrBuAsZ4K\nWcwSr4MTWj57lsvvrdfUDfMNSbgE0LR8rFnWAF9bWs8/u1s0BNGfr7KyRUZTyfFd\nzsnSGR1izFlj8HwTnB0cRF1GTSr/oVto2mkqX2YdE8FVxj2rhO3Z2RO5XVe+V1GC\nfdtk8S3HNesfHYEqvXsaTksnSHRB0crHFzv/JtsZInI3XXC8TiVS3qmA3mBig2av\ncmzRHFrWvSTVM49qZ5pyDMf+6OEEcgoqxMTqsDS0eNudiSfasZlGCQ==\n=PzTF\n-----END PGP PUBLIC KEY BLOCK-----\n",
+ "check_gpg": true
+ },
+ {
+ "name": "appstream",
+ "baseurl": "https://repo.msvsphere.ru/msvsphere/9.1/AppStream/x86_64/os/",
+ "gpgkey": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQINBGPvra8BEAC06qzoXEPc0vEThWkSLK2TdSmQnJuVePkP8dLPGb7BXN2eM+/R\niefFDWihMD6Xc5cDnNkPdkqUgOvy+LwQJmOnsXx16MvHtX0M2hQ31VHouslULtZN\nfFhfBZK1e6/RCWhrAcAUcbW3/L2wS2yiz9jFXDHhzi4Xa1iVZKXN0QtsebZfe6Fq\nUC1ERGgYjnjMyJnIJbcpJQLvbSgW4BC9sC0JM+HiIpsLsHZuYPsxwQuV3Drn6Pa4\nAM/jgR5Jgm8n8/eQva+jYOurhUdDXQAUYVvD4BWB4LKhkuWbEZktavUhRenExEst\nYVfZ//G3wJ+fpfTjvYwv9o64sxDWC8zMxNeYyKz/ql+lYq17zy9cTQXpb4NCH2Vg\n2uW8oqbMpbrIzPGhMengBEk0+gwg+a8+KKr95LhxeBOpkG/DsbNNLYOidMl4z+vl\nexQFkkgQ/42byw3Q+ug8RpNUT9iB01TKSq2YX+mGAv2MYDvTK2rsZ2UGTpbSkqIF\nXrlXtV/zOeAFitYW9nZxtM1PG699hyoXavOfa90+xx28eh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cyj9xuN8FDcflfoczwKxapzawtuuJJC4EhR6e3fBIGJJ5S6PVs/8Y\nBOdTTuLG2uwALRPe5wLUNw7aIbxYBcZ26boKRnN9FPNUjxahRpVKXPigrBuAsZ4K\nWcwSr4MTWj57lsvvrdfUDfMNSbgE0LR8rFnWAF9bWs8/u1s0BNGfr7KyRUZTyfFd\nzsnSGR1izFlj8HwTnB0cRF1GTSr/oVto2mkqX2YdE8FVxj2rhO3Z2RO5XVe+V1GC\nfdtk8S3HNesfHYEqvXsaTksnSHRB0crHFzv/JtsZInI3XXC8TiVS3qmA3mBig2av\ncmzRHFrWvSTVM49qZ5pyDMf+6OEEcgoqxMTqsDS0eNudiSfasZlGCQ==\n=PzTF\n-----END PGP PUBLIC KEY BLOCK-----\n",
+ "check_gpg": true
+ }
+ ]
+}
--
2.39.2

@ -22,7 +22,7 @@ It is compatible with composer-cli and cockpit-composer clients.
}
Name: osbuild-composer
Release: 1%{?dist}
Release: 1%{?dist}.inferit
Summary: An image building service based on osbuild
# osbuild-composer doesn't have support for building i686 and armv7hl images
@ -33,6 +33,9 @@ License: ASL 2.0
URL: %{gourl}
Source0: %{gosource}
# MSVSphere patches
Patch1001: 0001-Add-MSVSphere-9.1-support.patch
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
BuildRequires: systemd
@ -139,6 +142,17 @@ install -m 0755 -vp dnf-json %{buildroot}%
# Only include repositories for the distribution and release
install -m 0755 -vd %{buildroot}%{_datadir}/osbuild-composer/repositories
# MSVSphere support block
%if 0%{?msvsphere}
# MSVSphere 9 supports building for all MSVSphere versions
%if 0%{?msvsphere} >= 9
install -m 0644 -vp repositories/msvsphere-* %{buildroot}%{_datadir}/osbuild-composer/repositories/
%else
# MSVSphere 8 only supports building for MSVSphere 8
install -m 0644 -vp repositories/msvsphere-%{msvsphere}* %{buildroot}%{_datadir}/osbuild-composer/repositories/
%endif
%else # end of MSVSphere support
# CentOS also defines rhel so we check for centos first
%if 0%{?centos}
@ -164,6 +178,7 @@ install -m 0644 -vp repositories/rhel-%{rhel}* %{buildroot}%
%endif
%endif
%endif
%endif # end of MSVSphere support block
# Fedora can build for all included fedora releases
%if 0%{?fedora}
@ -421,8 +436,9 @@ Integration tests to be run on a pristine-dedicated system to test the osbuild-c
%endif
%changelog
* Wed Mar 15 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 62.1-1
- Rebuilt for MSVSphere 9.1.
* Thu Mar 30 2023 Eugene Zamriy <ezamriy@msvsphere.ru> - 62.1-1.inferit
- Added MSVSphere 9.1 support
- Rebuilt for MSVSphere 9.1
* Fri Sep 16 2022 Achilleas Koutsou <achilleas@redhat.com> - 62.1-1
- New upstream release

Loading…
Cancel
Save