]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/machine/machinectl.c
machined: add API for querying the OS release of a machine image
authorLennart Poettering <lennart@poettering.net>
Thu, 1 Dec 2016 22:24:20 +0000 (23:24 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 7 Dec 2016 17:38:41 +0000 (18:38 +0100)
commit9153b02bb5030e29d6008992fb74b9028d7c392c
tree23746568f265466f93388d66df417f56ceda50a0
parent676bcb0fc042c24e4335832622ea4104a1295b48
machined: add API for querying the OS release of a machine image

This adds a bus call GetImageOSRelease() to the Manager interface that
retrieves the /etc/os-release file of a machine image. It matches the existing
GetMachineOSRelease() call, however operates on a disk image rather than a
running container.

The backend for this call on .raw images is implemented via the generalized
image dissector, which makes this scheme relatively easy to implement.
src/machine/image-dbus.c
src/machine/image-dbus.h
src/machine/machine-dbus.c
src/machine/machine-dbus.h
src/machine/machinectl.c
src/machine/machined-dbus.c
src/machine/org.freedesktop.machine1.conf