From: Daan De Meyer Date: Wed, 12 Apr 2023 12:11:23 +0000 (+0200) Subject: Fix compilation error X-Git-Tag: v254-rc1~746 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=14cb10b737fc88d5acb82c626daa219703d00e64;p=systemd%2F.git Fix compilation error --- diff --git a/src/shared/discover-image.c b/src/shared/discover-image.c index ac6a8033dd..fac595f0d5 100644 --- a/src/shared/discover-image.c +++ b/src/shared/discover-image.c @@ -79,12 +79,12 @@ static const char* const image_search_path[_IMAGE_CLASS_MAX] = { static const char* const image_search_path_initrd[_IMAGE_CLASS_MAX] = { /* (entries that aren't listed here will get the same search path as for the non initrd-case) */ - [IMAGE_EXTENSION] = "/etc/extensions\0" /* only place symlinks here */ - "/run/extensions\0" /* and here too */ - "/var/lib/extensions\0" /* the main place for images */ - "/usr/local/lib/extensions\0" - "/usr/lib/extensions\0" - "/.extra/sysext\0" /* put sysext picked up by systemd-stub last, since not trusted */ + [IMAGE_SYSEXT] = "/etc/extensions\0" /* only place symlinks here */ + "/run/extensions\0" /* and here too */ + "/var/lib/extensions\0" /* the main place for images */ + "/usr/local/lib/extensions\0" + "/usr/lib/extensions\0" + "/.extra/sysext\0" /* put sysext picked up by systemd-stub last, since not trusted */ }; static Image *image_free(Image *i) {