diff --git a/src/shared/loop-util.c b/src/shared/loop-util.c index 8760cc89d9..4843cbcaab 100644 --- a/src/shared/loop-util.c +++ b/src/shared/loop-util.c @@ -198,7 +198,7 @@ int loop_device_make( if (loop < 0) { /* Somebody might've gotten the same number from the kernel, used the device, * and called LOOP_CTL_REMOVE on it. Let's retry with a new number. */ - if (errno != ENOENT) + if (!IN_SET(errno, ENOENT, ENXIO)) return -errno; } else { r = loop_configure(loop, &config);