dissect: add an API that can read various metadata bits out of a dissected image
authorLennart Poettering <lennart@poettering.net>
Tue, 14 Nov 2017 22:22:46 +0000 (23:22 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 20 Nov 2017 15:43:15 +0000 (16:43 +0100)
commit3b925504172e2c3ca8bb071fb8b6849520abd118
tree280f2c19b79cdfabd30a0179e761a23eb47ca410
parentb302a50d852b33efe018cd7cd3d47799b1ec094b
dissect: add an API that can read various metadata bits out of a dissected image

We focus on four kinds of metadata:

1. /etc/hostname
2. /etc/machine-id
3. /etc/machine-info
4. /etc/os-release or /usr/lib/os-release

This makes dissected images nicely self-contained as we can figure out
what they are just by dissecting them.
src/shared/dissect-image.c
src/shared/dissect-image.h