Apply missing patch

i8
Arkady L. Shane 1 year ago
parent 981ef6b690
commit 313b2cef40
Signed by: tigro
GPG Key ID: 1EC08A25C9DB2503

@ -1,4 +1,4 @@
From eba8d059d7489154f1239f692c20200c215f40ab Mon Sep 17 00:00:00 2001
From 0a1f32deaa9886a82a7f01441da03b31d2a3d940 Mon Sep 17 00:00:00 2001
From: Sergey Cherevko <s.cherevko@msvsphere-os.ru>
Date: Tue, 10 Oct 2023 12:17:22 +0300
Subject: [PATCH] Added MSVSphere support
@ -7,10 +7,10 @@ Subject: [PATCH] Added MSVSphere support
repositories/msvsphere-89.json | 16 ++++++++++++++
repositories/msvsphere-92.json | 16 ++++++++++++++
repositories/msvsphere-93.json | 16 ++++++++++++++
.../osbuild/images/pkg/distro/rhel8/distro.go | 16 ++++++++++++++
.../osbuild/images/pkg/distro/rhel8/distro.go | 17 +++++++++++++++
.../osbuild/images/pkg/distro/rhel9/distro.go | 21 +++++++++++++++++++
.../pkg/distroregistry/distroregistry.go | 3 +++
6 files changed, 88 insertions(+)
6 files changed, 89 insertions(+)
create mode 100644 repositories/msvsphere-89.json
create mode 100644 repositories/msvsphere-92.json
create mode 100644 repositories/msvsphere-93.json
@ -82,20 +82,21 @@ index 0000000..ba608f5
+ ]
+}
diff --git a/vendor/github.com/osbuild/images/pkg/distro/rhel8/distro.go b/vendor/github.com/osbuild/images/pkg/distro/rhel8/distro.go
index 1bb3ac7..a575ba7 100644
index 1bb3ac7..5e2c092 100644
--- a/vendor/github.com/osbuild/images/pkg/distro/rhel8/distro.go
+++ b/vendor/github.com/osbuild/images/pkg/distro/rhel8/distro.go
@@ -155,6 +155,9 @@ func NewRHEL89() distro.Distro {
@@ -155,6 +155,10 @@ func NewRHEL89() distro.Distro {
return newDistro("rhel", 9)
}
+func NewMSVSphere89() distro.Distro {
+ return newDistro("msvsphere", 9)
+}
+
func NewCentos() distro.Distro {
return newDistro("centos", 0)
}
@@ -188,6 +191,19 @@ func newDistro(name string, minor int) *distribution {
@@ -188,6 +192,19 @@ func newDistro(name string, minor int) *distribution {
runner: &runner.CentOS{Version: uint64(8)},
defaultImageConfig: defaultDistroImageConfig,
}

@ -33,6 +33,7 @@ License: Apache-2.0
URL: %{gourl}
Source0: %{gosource}
Patch1: 0001-Added-MSVSphere-support.patch
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
BuildRequires: systemd

Loading…
Cancel
Save