repart: Use loop_device_error_is_fatal() in one more place
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user