diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-10-04 17:36:58 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-10-26 17:54:56 +0200 |
commit | eb38edce88ac2f511ed9593a1c25c58a77158219 (patch) | |
tree | 4a26210a98743e913e1ffacdec4f9c279a86554f /src/machine | |
parent | 8c4a8ea2ac2569eb9f376ad17f8baea3e836b8ba (diff) | |
download | systemd-eb38edce88ac2f511ed9593a1c25c58a77158219.tar.gz |
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
Diffstat (limited to 'src/machine')
-rw-r--r-- | src/machine/image-dbus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/machine/image-dbus.c b/src/machine/image-dbus.c index 18e0e34896..e534470feb 100644 --- a/src/machine/image-dbus.c +++ b/src/machine/image-dbus.c @@ -431,6 +431,7 @@ int bus_image_method_get_os_release( break; case IMAGE_RAW: + case IMAGE_BLOCK: r = raw_image_get_os_release(image, &v, error); break; |