dissect: optionally, validate that the image we dissect is a valid OS image
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Mar 2018 19:39:32 +0000 (20:39 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 24 May 2018 15:01:57 +0000 (17:01 +0200)
commit03bcb6d408be7308088a7233dfe864538cf055b0
tree3ba2b01de65dbcc79679ebe67fad8f3d25ddf12b
parent4960ce43ff8c42a8c92219d88cbcdb82ae7a1ec0
dissect: optionally, validate that the image we dissect is a valid OS image

We already do this kind of validation in nspawn when we operate on a
plain directory, let's also do this on raw images under the same
condition: that we are about too boot the image. Also, do this when we
are about to read OS metadata from it.
src/nspawn/nspawn.c
src/shared/dissect-image.c
src/shared/dissect-image.h