Skip to content

Commit

Permalink
Merge pull request coreos#1164 from cgwalters/swtpm-quiet
Browse files Browse the repository at this point in the history
qemu: Silence errors from swtpm by default
  • Loading branch information
jlebon authored Jan 15, 2020
2 parents 383bdf5 + bce144d commit 77cd6d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,8 @@ func (builder *QemuBuilder) Exec() (*QemuInstance, error) {
"--ctrl", fmt.Sprintf("type=unixio,path=%s", swtpmSock),
"--terminate", "--tpmstate", fmt.Sprintf("dir=%s", inst.swtpmTmpd))
cmd := inst.swtpm.(*exec.ExecCmd)
cmd.Stderr = os.Stderr
// For now silence the swtpm stderr as it prints errors when
// disconnected, but that's normal.
if builder.Pdeathsig {
cmd.SysProcAttr = &syscall.SysProcAttr{
Pdeathsig: syscall.SIGTERM,
Expand Down

0 comments on commit 77cd6d9

Please sign in to comment.