[PATCH] m4/guestfs-appliance.m4: add VIRTUOZZO to RedHat-based distros
This allows to detect VzLinux guest. Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com> Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com> --- 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 16ab3212d..3b97825c4 100644 --- a/m4/guestfs-appliance.m4 +++ b/m4/guestfs-appliance.m4 @@ -115,7 +115,7 @@ if test "x$ENABLE_APPLIANCE" = "xyes"; then )" AS_CASE([$DISTRO], [FEDORA | RHEL | CENTOS | ALMALINUX | CLOUDLINUX \ - | ROCKY], + | ROCKY | VIRTUOZZO], [DISTRO=REDHAT], [OPENSUSE* | SLED | SLES],[DISTRO=SUSE], [ARCH | MANJARO | ARTIX],[DISTRO=ARCHLINUX], -- 2.38.1
This allows to detect VzLinux guest.
Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com> Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com> --- 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 16ab3212d..3b97825c4 100644 --- a/m4/guestfs-appliance.m4 +++ b/m4/guestfs-appliance.m4 @@ -115,7 +115,7 @@ if test "x$ENABLE_APPLIANCE" = "xyes"; then )" AS_CASE([$DISTRO], [FEDORA | RHEL | CENTOS | ALMALINUX | CLOUDLINUX \ - | ROCKY], + | ROCKY | VIRTUOZZO], [DISTRO=REDHAT], [OPENSUSE* | SLED | SLES],[DISTRO=SUSE], [ARCH | MANJARO | ARTIX],[DISTRO=ARCHLINUX],
On 12/9/22 19:36, Andrey Drobyshev wrote: pls sent to mainstream.
On Fri, Dec 09, 2022 at 07:50:06PM +0100, Denis V. Lunev wrote:
On 12/9/22 19:36, Andrey Drobyshev wrote:
This allows to detect VzLinux guest.
Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com> Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com> --- 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 16ab3212d..3b97825c4 100644 --- a/m4/guestfs-appliance.m4 +++ b/m4/guestfs-appliance.m4 @@ -115,7 +115,7 @@ if test "x$ENABLE_APPLIANCE" = "xyes"; then )" AS_CASE([$DISTRO], [FEDORA | RHEL | CENTOS | ALMALINUX | CLOUDLINUX \ - | ROCKY], + | ROCKY | VIRTUOZZO], [DISTRO=REDHAT], [OPENSUSE* | SLED | SLES],[DISTRO=SUSE], [ARCH | MANJARO | ARTIX],[DISTRO=ARCHLINUX],
pls sent to mainstream.
Somehow I have missed the original patch. Was it sent to the mailing list? Anyway I will make this change based on the patch now, thanks! Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
On 12/9/22 20:59, Richard W.M. Jones wrote:
On Fri, Dec 09, 2022 at 07:50:06PM +0100, Denis V. Lunev wrote:
On 12/9/22 19:36, Andrey Drobyshev wrote:
This allows to detect VzLinux guest.
Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com> Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com> --- 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 16ab3212d..3b97825c4 100644 --- a/m4/guestfs-appliance.m4 +++ b/m4/guestfs-appliance.m4 @@ -115,7 +115,7 @@ if test "x$ENABLE_APPLIANCE" = "xyes"; then )" AS_CASE([$DISTRO], [FEDORA | RHEL | CENTOS | ALMALINUX | CLOUDLINUX \ - | ROCKY], + | ROCKY | VIRTUOZZO], [DISTRO=REDHAT], [OPENSUSE* | SLED | SLES],[DISTRO=SUSE], [ARCH | MANJARO | ARTIX],[DISTRO=ARCHLINUX],
pls sent to mainstream.
Somehow I have missed the original patch. Was it sent to the mailing list?
Yep, I did sent it to libguestfs@redhat.com, but somehow it didn't appear on the mailing list. Strange indeed...
Anyway I will make this change based on the patch now, thanks!
Rich.
On Fri, Dec 09, 2022 at 09:15:14PM +0200, Andrey Drobyshev wrote:
On 12/9/22 20:59, Richard W.M. Jones wrote:
On Fri, Dec 09, 2022 at 07:50:06PM +0100, Denis V. Lunev wrote:
On 12/9/22 19:36, Andrey Drobyshev wrote:
This allows to detect VzLinux guest.
Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com> Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com> --- 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 16ab3212d..3b97825c4 100644 --- a/m4/guestfs-appliance.m4 +++ b/m4/guestfs-appliance.m4 @@ -115,7 +115,7 @@ if test "x$ENABLE_APPLIANCE" = "xyes"; then )" AS_CASE([$DISTRO], [FEDORA | RHEL | CENTOS | ALMALINUX | CLOUDLINUX \ - | ROCKY], + | ROCKY | VIRTUOZZO], [DISTRO=REDHAT], [OPENSUSE* | SLED | SLES],[DISTRO=SUSE], [ARCH | MANJARO | ARTIX],[DISTRO=ARCHLINUX],
pls sent to mainstream.
Somehow I have missed the original patch. Was it sent to the mailing list?
Yep, I did sent it to libguestfs@redhat.com, but somehow it didn't appear on the mailing list. Strange indeed...
It seems like it was delayed for some reason. Anyway this is the patch I added: https://github.com/libguestfs/libguestfs/commit/188aa9947f903b2851c6c0e5f3f0... Rich.
Anyway I will make this change based on the patch now, thanks!
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
participants (3)
-
Andrey Drobyshev -
Denis V. Lunev -
Richard W.M. Jones