]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/machine-image.c
machine-image: add partial discovery of block devices as images
authorLennart Poettering <lennart@poettering.net>
Wed, 4 Oct 2017 15:36:58 +0000 (17:36 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 26 Oct 2017 15:54:56 +0000 (17:54 +0200)
commiteb38edce88ac2f511ed9593a1c25c58a77158219
tree4a26210a98743e913e1ffacdec4f9c279a86554f
parent8c4a8ea2ac2569eb9f376ad17f8baea3e836b8ba
machine-image: add partial discovery of block devices as images

This adds some basic discovery of block device images for nspawn and
friends. Note that this doesn't add searching for block devices using
udev, but instead expects users to symlink relevant block devices into
/var/lib/machines. Discovery is hence done exactly like for
dir/subvol/raw file images, except that what is found may be a (symlink
to) a block device.

For now, we do not support cloning these images, but removal, renaming
and read-only flags are supported to the point where that makes sense.

Fixe: #6990
src/machine/image-dbus.c
src/nspawn/nspawn.c
src/shared/machine-image.c
src/shared/machine-image.h