discover-image: export search paths array

This way we can use it to validate image paths later.
This commit is contained in:
Lennart Poettering
2024-04-06 16:08:23 +02:00
parent b2dcfd8e11
commit f7178a04db
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -48,7 +48,7 @@
#include "vpick.h"
#include "xattr-util.h"
static const char* const image_search_path[_IMAGE_CLASS_MAX] = {
const char* const image_search_path[_IMAGE_CLASS_MAX] = {
[IMAGE_MACHINE] = "/etc/machines\0" /* only place symlinks here */
"/run/machines\0" /* and here too */
"/var/lib/machines\0" /* the main place for images */
+2
View File
@@ -122,3 +122,5 @@ int image_to_json(const struct Image *i, JsonVariant **ret);
const char *image_root_to_string(ImageClass c) _const_;
extern const struct hash_ops image_hash_ops;
extern const char* const image_search_path[_IMAGE_CLASS_MAX];