From 8d251485fa53a219f3a9fe1b03205fe81989e38e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 29 Jan 2020 19:21:44 +0100 Subject: [PATCH] core: fsck images specified as RootImage= too before using them --- src/core/execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/execute.c b/src/core/execute.c index 59d7714f2c6..b6a4f5479b8 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -2603,7 +2603,7 @@ static int apply_mount_namespace( needs_sandboxing ? context->protect_home : PROTECT_HOME_NO, needs_sandboxing ? context->protect_system : PROTECT_SYSTEM_NO, context->mount_flags, - DISSECT_IMAGE_DISCARD_ON_LOOP|DISSECT_IMAGE_RELAX_VAR_CHECK, + DISSECT_IMAGE_DISCARD_ON_LOOP|DISSECT_IMAGE_RELAX_VAR_CHECK|DISSECT_IMAGE_FSCK, error_path); /* If we couldn't set up the namespace this is probably due to a missing capability. setup_namespace() reports -- 2.47.3