5
_summary: Detect presence of TPM chip
7
BIOS configuration may be preventing the OS from detecting and interacting
8
with the TPM chip. TPM chips can be in one of three BIOS states:
10
- Inactive (visible but not functional)
11
- Disabled (not visible and not functional)
13
This resource job describes the BIOS setting of the TPM chip. The output is
14
always a resource with one record. The record contains only one key:
16
setting: Active|Inactive|Disabled
18
if tpm_version >/dev/null; then
19
if tpm_setenable --status --well-known | grep -q -F 'code=0006 (6)'; then
20
echo "setting: Inactive"
22
echo "setting: Active"
25
echo "setting: Disabled"
27
flags: preserve-locale
28
estimated_duration: 3s