repart: Use loop_device_error_is_fatal() in one more place

This commit is contained in:
Daan De Meyer
2024-08-21 11:29:47 +02:00
parent 0197fb599a
commit 9fb5d912f5
+1 -1
View File
@@ -6864,7 +6864,7 @@ static int context_minimize(Context *context) {
if (arg_offline <= 0) {
r = loop_device_make(fd, O_RDWR, 0, UINT64_MAX, context->sector_size, 0, LOCK_EX, &d);
if (r < 0 && (arg_offline == 0 || (r != -ENOENT && !ERRNO_IS_PRIVILEGE(r)) || !strv_isempty(p->subvolumes)))
if (r < 0 && loop_device_error_is_fatal(p, r))
return log_error_errno(r, "Failed to make loopback device of %s: %m", temp);
}