config_aware_timeout: add 5s if TPM is configured

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-10-18 09:43:14 +02:00
parent 90c41bac8f
commit d4e1e1f862

View File

@ -158,6 +158,8 @@ sub config_aware_timeout {
$timeout = 150;
}
$timeout += 5 if $config->{tpmstate0}; # we allow the swtpm 5s startup time
return $timeout;
}