From 742e26ba20f9362539a4bc30e26ff49e9ec83a87 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 12 Mar 2025 21:56:36 +0100 Subject: [PATCH] bootctl: make sure bootctl --image= works on image with /usr/ but without / Let's make sure we can use the tool on ParticleOS images. They have no root fs by default (until they are instantiated), but always have /usr/. Hence add DISSECT_IMAGE_USR_NO_ROOT which has the desired effect. --- src/bootctl/bootctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bootctl/bootctl.c b/src/bootctl/bootctl.c index ebb4749d17..0a7893224c 100644 --- a/src/bootctl/bootctl.c +++ b/src/bootctl/bootctl.c @@ -718,6 +718,7 @@ static int run(int argc, char *argv[]) { arg_image, arg_image_policy, DISSECT_IMAGE_GENERIC_ROOT | + DISSECT_IMAGE_USR_NO_ROOT | DISSECT_IMAGE_RELAX_VAR_CHECK | DISSECT_IMAGE_ALLOW_USERSPACE_VERITY, &mounted_dir,