48 lines
1.1 KiB
Diff
48 lines
1.1 KiB
Diff
From 4da6d385eb5a2b262d3304304c3eba803dd8cc1a Mon Sep 17 00:00:00 2001
|
|
From: Weisson <hanxiaobupt@bupt.edu.cn>
|
|
Date: Thu, 27 May 2021 10:53:08 +0100
|
|
Subject: [PATCH 28/36] Add support for Alibaba Cloud Linux
|
|
|
|
(cherry picked from commit ed11e2d298ec7466fac656a38a2cefd386130420)
|
|
---
|
|
virt-what.in | 5 +++++
|
|
virt-what.pod | 6 ++++++
|
|
2 files changed, 11 insertions(+)
|
|
|
|
diff --git a/virt-what.in b/virt-what.in
|
|
index 8021290..3dac91a 100644
|
|
--- a/virt-what.in
|
|
+++ b/virt-what.in
|
|
@@ -113,6 +113,11 @@ dmi=$(LANG=C dmidecode 2>&1)
|
|
|
|
arch=$(uname -m | sed -e 's/i.86/i386/' | sed -e 's/arm.*/arm/')
|
|
|
|
+# Check for Alibaba Cloud
|
|
+if echo "$dmi" | grep -q 'Manufacturer: Alibaba Cloud'; then
|
|
+ echo "alibaba_cloud"
|
|
+fi
|
|
+
|
|
# Check for VMware.
|
|
# cpuid check added by Chetan Loke.
|
|
|
|
diff --git a/virt-what.pod b/virt-what.pod
|
|
index 405537b..9f8bea2 100644
|
|
--- a/virt-what.pod
|
|
+++ b/virt-what.pod
|
|
@@ -25,6 +25,12 @@ don't know about or cannot detect.
|
|
|
|
=over 4
|
|
|
|
+=item B<alibaba_cloud>
|
|
+
|
|
+This is a cloud computing service based on Alibaba Cloud.
|
|
+
|
|
+Status: contributed by Weisson.
|
|
+
|
|
=item B<aws>
|
|
|
|
Amazon Web Services.
|
|
--
|
|
2.31.1
|
|
|