mirror of
https://github.com/systemd/systemd.git
synced 2025-01-03 05:18:09 +03:00
dissect: minor simplifications
This commit is contained in:
parent
4ee940f5e2
commit
796d87aa73
@ -1464,7 +1464,7 @@ static int action_list_or_mtree_or_copy_or_make_archive(DissectedImage *m, LoopD
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
mounted_dir = TAKE_PTR(t);
|
||||
root = mounted_dir = TAKE_PTR(t);
|
||||
|
||||
if (d) {
|
||||
r = loop_device_flock(d, LOCK_UN);
|
||||
@ -1475,11 +1475,10 @@ static int action_list_or_mtree_or_copy_or_make_archive(DissectedImage *m, LoopD
|
||||
r = dissected_image_relinquish(m);
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to relinquish DM and loopback block devices: %m");
|
||||
}
|
||||
|
||||
root = mounted_dir ?: arg_root;
|
||||
|
||||
dissected_image_close(m);
|
||||
dissected_image_close(m);
|
||||
} else
|
||||
root = arg_root;
|
||||
|
||||
switch (arg_action) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user