summaryrefslogtreecommitdiff
path: root/src/shared/machine-image.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-04-17 11:14:57 +0200
committerLennart Poettering <lennart@poettering.net>2018-05-24 17:01:57 +0200
commitcf604fd40f75e046838c095a8b343eca24f65079 (patch)
tree41ebe64057970d752ea737543ab053da840a8855 /src/shared/machine-image.h
parent9614bb06ef60eea3ab6dd5d35f970ba60ef3fc63 (diff)
downloadsystemd-cf604fd40f75e046838c095a8b343eca24f65079.tar.gz
machine-image: add 'discoverable' flag for images
This new flag indicates whether the image object was found in the search paths using the usual algorithm, or was instantiated by path. This is useful for code that wants to know whether an image may be referenced by its shortened name or must be specified by its full name.
Diffstat (limited to 'src/shared/machine-image.h')
-rw-r--r--src/shared/machine-image.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/machine-image.h b/src/shared/machine-image.h
index 899268dbd1..7e09e8002a 100644
--- a/src/shared/machine-image.h
+++ b/src/shared/machine-image.h
@@ -54,7 +54,8 @@ typedef struct Image {
char **machine_info;
char **os_release;
- bool metadata_valid;
+ bool metadata_valid:1;
+ bool discoverable:1; /* true if we know for sure that image_find() would find the image given just the short name */
void *userdata;
} Image;