]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: fsck images specified as RootImage= too before using them
authorLennart Poettering <lennart@poettering.net>
Wed, 29 Jan 2020 18:21:44 +0000 (19:21 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 29 Jan 2020 18:29:59 +0000 (19:29 +0100)
src/core/execute.c

index 59d7714f2c616d59c3fedadabb5f631daa8debe4..b6a4f5479b8c8525aefebf7c82684d3b1e091c3d 100644 (file)
@@ -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