]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/test/test-dissect-image.c
dissect: make using a generic partition as root partition optional
authorLennart Poettering <lennart@poettering.net>
Thu, 15 Dec 2016 16:38:11 +0000 (17:38 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 Dec 2016 18:09:30 +0000 (19:09 +0100)
commite0f9e7bd03eebeb8fdfce7f766c4e254e3586dc8
tree05a9df559074b9194fe15b5b6f08dfc0c2af636a
parentbe30ad41ffd796ba40a5026b4963c17f04cc334d
dissect: make using a generic partition as root partition optional

In preparation for reusing the image dissector in the GPT auto-discovery
logic, only optionally fail the dissection when we can't identify a root
partition.

In the GPT auto-discovery we are completely fine with any kind of root,
given that we run when it is already mounted and all we do is find some
additional auxiliary partitions on the same disk.
src/dissect/dissect.c
src/machine/image-dbus.c
src/nspawn/nspawn.c
src/shared/dissect-image.c
src/shared/dissect-image.h
src/test/test-dissect-image.c