From f516a7d37c1654addc02485e681b4358d7e7c0db Mon Sep 17 00:00:00 2001 From: Andrew Kutz <101085+akutz@users.noreply.github.com> Date: Fri, 13 Aug 2021 14:30:55 -0500 Subject: [PATCH] Revert unnecesary lcase in ds-identify (#978) This patch reverts an unnecessary lcase optimization in the ds-identify script. SystemD documents the values produced by the systemd-detect-virt command are lower case, and the mapping table used by the FreeBSD check is also lower-case. The optimization added two new forked processes, needlessly causing overhead. --- tools/ds-identify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ds-identify b/tools/ds-identify index 537468fef90..f509f566f88 100755 --- a/tools/ds-identify +++ b/tools/ds-identify @@ -449,7 +449,7 @@ detect_virt() { read_virt() { cached "$DI_VIRT" && return 0 detect_virt - DI_VIRT="$(echo "${_RET}" | tr '[:upper:]' '[:lower:]')" + DI_VIRT="${_RET}" } is_container() {