summaryrefslogtreecommitdiff
path: root/src/sysext
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-09-01 12:38:53 +0200
committerLennart Poettering <lennart@poettering.net>2022-09-01 22:05:10 +0200
commit234c2e16e5686d1a49fe84e534d4edb2db8d3719 (patch)
treee0db0ef1c46e0ec08cd850327d1e3d3f6c452317 /src/sysext
parente8383058b2378e516b1a6c092b323537624db475 (diff)
downloadsystemd-234c2e16e5686d1a49fe84e534d4edb2db8d3719.tar.gz
dissect: drop partition removal code
This reverts a major chunk of 75d7e04eb4662a814c26010d447eed8a862f5ec1 Now that the loopback device code already destroys the partitions we don't have to do this here anymore. I am sure the right place to delete the partitions is in the loopback code, since we really only should do that for loopback devices, see bug #24431, and not on "real" block devices. I am also not convinced dropping partitions the dissection logic doesn't care about is a good idea, after all. The dissection stuff should probably not consider itself the "owner" of the block devices it analyzes, but take a more passive role: figure out what is what, but not modify it. Fixes: #24431
Diffstat (limited to 'src/sysext')
-rw-r--r--src/sysext/sysext.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/sysext/sysext.c b/src/sysext/sysext.c
index a8593cec4d..2f6cf22d2e 100644
--- a/src/sysext/sysext.c
+++ b/src/sysext/sysext.c
@@ -585,7 +585,6 @@ static int merge_subprocess(Hashmap *images, const char *workspace) {
return log_error_errno(r, "Failed to relinquish DM devices: %m");
}
- dissected_image_relinquish(m);
loop_device_relinquish(d);
break;
}