]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
runqemu: keep generating tap devices
authorKonrad Weihmann <kweihmann@outlook.com>
Mon, 9 Sep 2024 08:32:15 +0000 (08:32 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 10 Sep 2024 12:04:43 +0000 (13:04 +0100)
commit23876576d054ebbab9b02c0012782aa56feda123
tree3ecd03da0cdd57f4b47e3f04ef755510b6d78efc
parent10947ec977daa8029c83e5f5e48dfa05af5a94ef
runqemu: keep generating tap devices

in case there is no tap device the script tries to
generate a new one.
The new device is then unguarded for a moment, so
the newly generated device could be acquired
by a different instance or user, before it is locked to
the instance with acquire_taplock.
To fix that keep generating new tap devices in case
the lock can't be acquired up to 5 times.
If no tap device can be locked it fails in the existing
error handling

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu