|
|
4eb3b8 |
From 0eeec94882779de76c08b1a7faf862e22f21f242 Mon Sep 17 00:00:00 2001
|
|
|
41c250 |
From: Emanuele Giuseppe Esposito <eesposit@redhat.com>
|
|
|
4eb3b8 |
Date: Fri, 14 Jan 2022 16:42:46 +0100
|
|
|
41c250 |
Subject: [PATCH 5/6] Revert unnecesary lcase in ds-identify (#978)
|
|
|
41c250 |
|
|
|
41c250 |
RH-Author: Emanuele Giuseppe Esposito <eesposit@redhat.com>
|
|
|
4eb3b8 |
RH-MergeRequest: 44: Datasource for VMware
|
|
|
4eb3b8 |
RH-Commit: [5/6] f7385c15cf17a9c4a2fa15b29afd1b8a96b24d1e
|
|
|
4eb3b8 |
RH-Bugzilla: 2026587
|
|
|
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 |
|