From: Lennart Poettering Date: Wed, 29 Jan 2020 18:21:44 +0000 (+0100) Subject: core: fsck images specified as RootImage= too before using them X-Git-Tag: v245-rc1~46^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d251485fa53a219f3a9fe1b03205fe81989e38e;p=thirdparty%2Fsystemd.git core: fsck images specified as RootImage= too before using them --- 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