summaryrefslogtreecommitdiff
path: root/src/machine
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-10-04 17:36:58 +0200
committerLennart Poettering <lennart@poettering.net>2017-10-26 17:54:56 +0200
commiteb38edce88ac2f511ed9593a1c25c58a77158219 (patch)
tree4a26210a98743e913e1ffacdec4f9c279a86554f /src/machine
parent8c4a8ea2ac2569eb9f376ad17f8baea3e836b8ba (diff)
downloadsystemd-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.c1
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;