From ce7a5d60269c2303b7d59fcf798d05f55c716192 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Tue, 14 Oct 2025 18:44:32 +0100 Subject: [PATCH] dissect-image: pass through DISSECT_IMAGE_VERITY_SHARE to mountfsd via varlink if set This ensures user services using RootImage=, ExtensionImages= etc. also try to reuse existing verity devices, like system services. Follow-up for 57d1ceffb3d98f69c2da511ed59a420a1cfa7e40 --- src/shared/dissect-image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index e44c307bbf..75dd428df8 100644 --- a/src/shared/dissect-image.c +++ b/src/shared/dissect-image.c @@ -4707,6 +4707,7 @@ int mountfsd_mount_image( SD_JSON_BUILD_PAIR("readOnly", SD_JSON_BUILD_BOOLEAN(FLAGS_SET(flags, DISSECT_IMAGE_MOUNT_READ_ONLY))), SD_JSON_BUILD_PAIR("growFileSystems", SD_JSON_BUILD_BOOLEAN(FLAGS_SET(flags, DISSECT_IMAGE_GROWFS))), SD_JSON_BUILD_PAIR_CONDITION(!!ps, "imagePolicy", SD_JSON_BUILD_STRING(ps)), + SD_JSON_BUILD_PAIR("veritySharing", SD_JSON_BUILD_BOOLEAN(FLAGS_SET(flags, DISSECT_IMAGE_VERITY_SHARE))), SD_JSON_BUILD_PAIR("allowInteractiveAuthentication", SD_JSON_BUILD_BOOLEAN(FLAGS_SET(flags, DISSECT_IMAGE_ALLOW_INTERACTIVE_AUTH)))); if (r < 0) return r;