pt-summary errors out with "STATUS_THP_SYSTEM: unbound variable"
General
Escalation
General
Escalation
Description
In lib/bash/report_system_info.sh
Variable STATUS_THP_SYSTEM is only set when file /sys/kernel/mm/transparent_hugepage/enabled exists. So on those system (e.g. Xen hypervisor kernels) that doesn’t have this file, it errors out with STATUS_THP_SYSTEM: unbound variable (because set -u is set)
In
lib/bash/report_system_info.sh
Variable
STATUS_THP_SYSTEM
is only set when file/sys/kernel/mm/transparent_hugepage/enabled
exists. So on those system (e.g. Xen hypervisor kernels) that doesn’t have this file, it errors out withSTATUS_THP_SYSTEM: unbound variable
(becauseset -u
is set)