mirror of
https://github.com/stefanberger/swtpm.git
synced 2026-02-02 02:05:21 +00:00
swtpm_setup: Increase timeout from 10s to 30s for slower machines
Older ARM processors need more time to create the initial CA keys and then the key for the TPM. So we increase the timeout to 30s. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
f495d8fc9b
commit
a57c33a1f0
@ -223,7 +223,7 @@ def call_create_certs(flags, config_file, certsdir, ekparam, vmid, swtpm):
|
||||
cmd[2] = entry[1]
|
||||
logit(LOGFILE, " Invoking %s\n" % (" ".join(cmd)))
|
||||
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
stdout, _ = proc.communicate(timeout=10)
|
||||
stdout, _ = proc.communicate(timeout=30)
|
||||
for line in stdout.decode().split("\n"):
|
||||
if len(line) > 0:
|
||||
logit(LOGFILE, "%s: %s\n" % (prgname, line))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user