From f75f2847b4785960e9656b8d5cfac6503d29321c Mon Sep 17 00:00:00 2001 From: tigro Date: Tue, 4 Jun 2024 23:15:14 +0300 Subject: [PATCH] Add support of MSVSphere --- ...-MSVSPHERE-to-list-of-REDHAT-distros.patch | 25 +++++++++++++++++++ SPECS/libguestfs.spec | 3 +++ 2 files changed, 28 insertions(+) create mode 100644 SOURCES/0001-Add-MSVSPHERE-to-list-of-REDHAT-distros.patch diff --git a/SOURCES/0001-Add-MSVSPHERE-to-list-of-REDHAT-distros.patch b/SOURCES/0001-Add-MSVSPHERE-to-list-of-REDHAT-distros.patch new file mode 100644 index 0000000..cda57c9 --- /dev/null +++ b/SOURCES/0001-Add-MSVSPHERE-to-list-of-REDHAT-distros.patch @@ -0,0 +1,25 @@ +From 03f7661f958cb3a0798e3c773a9ea5ff2642b80c Mon Sep 17 00:00:00 2001 +From: tigro +Date: Tue, 4 Jun 2024 22:46:13 +0300 +Subject: [PATCH] Add MSVSPHERE to list of REDHAT distros + +--- + m4/guestfs-appliance.m4 | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/m4/guestfs-appliance.m4 b/m4/guestfs-appliance.m4 +index b0a6ab4..f8abfe6 100644 +--- a/m4/guestfs-appliance.m4 ++++ b/m4/guestfs-appliance.m4 +@@ -105,7 +105,7 @@ AC_ARG_WITH([distro], + ( . /etc/os-release && echo $ID | tr '@<:@:lower:@:>@' '@<:@:upper:@:>@' ) >&AS_MESSAGE_LOG_FD + DISTRO="`. /etc/os-release && echo $ID | tr '@<:@:lower:@:>@' '@<:@:upper:@:>@'`" + AS_CASE([$DISTRO], +- [FEDORA | RHEL | CENTOS],[DISTRO=REDHAT], ++ [FEDORA | RHEL | CENTOS | MSVSPHERE],[DISTRO=REDHAT], + [OPENSUSE* | SLED | SLES],[DISTRO=SUSE], + [ARCH],[DISTRO=ARCHLINUX], + [OPENMANDRIVA],[DISTRO=OPENMANDRIVA]) +-- +2.45.1 + diff --git a/SPECS/libguestfs.spec b/SPECS/libguestfs.spec index ea7a189..2f2fe87 100644 --- a/SPECS/libguestfs.spec +++ b/SPECS/libguestfs.spec @@ -74,6 +74,9 @@ Patch0021: 0021-appliance-Use-cpu-mode-maximum-for-cpu-max-on-libvir.patch Patch0022: 0022-lib-Disable-5-level-page-tables-when-using-cpu-max.patch Patch0023: 0023-docs-guestfs-security-document-CVE-2022-2211.patch +# MSVSphere +Patch0100: 0001-Add-MSVSPHERE-to-list-of-REDHAT-distros.patch + # Replacement README file. Source4: README-replacement.in