diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-06-26 20:32:13 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-08-21 11:29:47 +0200 |
commit | 9fb5d912f5b799acb99a79cd5f8a0e867212f2d3 (patch) | |
tree | db46eec9b49aed4aae1d7b1f25e19ae34d5489a4 /src/partition | |
parent | test-network: make kernel send NA with router flag (diff) | |
download | systemd-9fb5d912f5b799acb99a79cd5f8a0e867212f2d3.tar.xz systemd-9fb5d912f5b799acb99a79cd5f8a0e867212f2d3.zip |
repart: Use loop_device_error_is_fatal() in one more place
Diffstat (limited to 'src/partition')
-rw-r--r-- | src/partition/repart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/partition/repart.c b/src/partition/repart.c index 7db493cafc..860e69dc19 100644 --- a/src/partition/repart.c +++ b/src/partition/repart.c @@ -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); } |