Getting unbound loop devices is racy, so we do it in a retry loop: in case of a recoverable error, like when the loop device signals it is busy, we close the it and try another one. Indeed the code, closed the loop device but did in fact not open a new one and we would therefore see file descriptor cannot be a negative integer errors when trying in `lo.set_fd(fd)` since `lo` is in fact closed now and thus indeed '-1'. Open a new loop device at the beginning of the retry-loop to fix this issue. |
||
|---|---|---|
| .. | ||
| org.osbuild.loopback | ||