Explicitly clear the fd. There might be a race with udev or some other process that still as a reference to the loop device so we might not be able to immediately clear it. Thus wait for it with a timeout of 30 seconds which should hopefully be enough. If the device does not clear then any consecutive action that involves it might not be safe to execute so we let the timeout exception be reported to osbuild. |
||
|---|---|---|
| .. | ||
| org.osbuild.loopback | ||