Re: [pve-devel] [PATCH qemu-server 2/2] swtpm: wait for pidfile

2021-10-18 Thread Thomas Lamprecht
On 14.10.21 11:28, Stefan Reiter wrote: > swtpm may take a little bit to daemonize, so the pidfile might not be > available right after run_command. Causes an ugly warning about using an > undefined value in a match, so wait up to 5s for it to appear. > > Note that in testing this loop only ever g

[pve-devel] [PATCH qemu-server 2/2] swtpm: wait for pidfile

2021-10-14 Thread Stefan Reiter
swtpm may take a little bit to daemonize, so the pidfile might not be available right after run_command. Causes an ugly warning about using an undefined value in a match, so wait up to 5s for it to appear. Note that in testing this loop only ever got to the first or second iteration, so I believe