Skip to content

Commit f516a7d

Browse files
authored
Revert unnecesary lcase in ds-identify (canonical#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.
1 parent 0404743 commit f516a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/ds-identify

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ detect_virt() {
449449
read_virt() {
450450
cached "$DI_VIRT" && return 0
451451
detect_virt
452-
DI_VIRT="$(echo "${_RET}" | tr '[:upper:]' '[:lower:]')"
452+
DI_VIRT="${_RET}"
453453
}
454454

455455
is_container() {

0 commit comments

Comments
 (0)