]> git.ipfire.org Git - thirdparty/systemd.git/commit
dissect: drop partition removal code
authorLennart Poettering <lennart@poettering.net>
Thu, 1 Sep 2022 10:38:53 +0000 (12:38 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 1 Sep 2022 20:05:10 +0000 (22:05 +0200)
commit234c2e16e5686d1a49fe84e534d4edb2db8d3719
treee0db0ef1c46e0ec08cd850327d1e3d3f6c452317
parente8383058b2378e516b1a6c092b323537624db475
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
src/core/namespace.c
src/dissect/dissect.c
src/gpt-auto-generator/gpt-auto-generator.c
src/shared/dissect-image.c
src/shared/dissect-image.h
src/sysext/sysext.c