|
|
41c250 |
From 532a36edf0dea2b98835bd08e285bec9c50eb0f9 Mon Sep 17 00:00:00 2001
|
|
|
41c250 |
From: Emanuele Giuseppe Esposito <eesposit@redhat.com>
|
|
|
41c250 |
Date: Fri, 14 Jan 2022 16:42:41 +0100
|
|
|
41c250 |
Subject: [PATCH 5/6] Revert unnecesary lcase in ds-identify (#978)
|
|
|
41c250 |
|
|
|
41c250 |
RH-Author: Emanuele Giuseppe Esposito <eesposit@redhat.com>
|
|
|
41c250 |
RH-MergeRequest: 43: Datasource for VMware
|
|
|
41c250 |
RH-Commit: [5/6] 95634e4b42e3abfb91182b090c312eef29c63e54
|
|
|
41c250 |
RH-Bugzilla: 2040704
|
|
|
41c250 |
RH-Acked-by: Mohamed Gamal Morsy <mmorsy@redhat.com>
|
|
|
41c250 |
RH-Acked-by: Eduardo Otubo <otubo@redhat.com>
|
|
|
41c250 |
|
|
|
41c250 |
commit f516a7d37c1654addc02485e681b4358d7e7c0db
|
|
|
41c250 |
Author: Andrew Kutz <101085+akutz@users.noreply.github.com>
|
|
|
41c250 |
Date: Fri Aug 13 14:30:55 2021 -0500
|
|
|
41c250 |
|
|
|
41c250 |
Revert unnecesary lcase in ds-identify (#978)
|
|
|
41c250 |
|
|
|
41c250 |
This patch reverts an unnecessary lcase optimization in the
|
|
|
41c250 |
ds-identify script. SystemD documents the values produced by
|
|
|
41c250 |
the systemd-detect-virt command are lower case, and the mapping
|
|
|
41c250 |
table used by the FreeBSD check is also lower-case.
|
|
|
41c250 |
|
|
|
41c250 |
The optimization added two new forked processes, needlessly
|
|
|
41c250 |
causing overhead.
|
|
|
41c250 |
|
|
|
41c250 |
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
|
|
|
41c250 |
---
|
|
|
41c250 |
tools/ds-identify | 2 +-
|
|
|
41c250 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
41c250 |
|
|
|
41c250 |
diff --git a/tools/ds-identify b/tools/ds-identify
|
|
|
41c250 |
index 0e12298f..7b782462 100755
|
|
|
41c250 |
--- a/tools/ds-identify
|
|
|
41c250 |
+++ b/tools/ds-identify
|
|
|
41c250 |
@@ -449,7 +449,7 @@ detect_virt() {
|
|
|
41c250 |
read_virt() {
|
|
|
41c250 |
cached "$DI_VIRT" && return 0
|
|
|
41c250 |
detect_virt
|
|
|
41c250 |
- DI_VIRT="$(echo "${_RET}" | tr '[:upper:]' '[:lower:]')"
|
|
|
41c250 |
+ DI_VIRT="${_RET}"
|
|
|
41c250 |
}
|
|
|
41c250 |
|
|
|
41c250 |
is_container() {
|
|
|
41c250 |
--
|
|
|
41c250 |
2.27.0
|
|
|
41c250 |
|