]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/unit.c
core: add RootImage= setting for using a specific image file as root directory for...
[thirdparty/systemd.git] / src / core / unit.c
index 44f1d5e206ed690782f30178bed5aed2aad9d897..90d7eea95629d27e59cc80e339c89627da9f391a 100644 (file)
@@ -862,6 +862,12 @@ int unit_add_exec_dependencies(Unit *u, ExecContext *c) {
                         return r;
         }
 
+        if (c->root_image) {
+                r = unit_require_mounts_for(u, c->root_image);
+                if (r < 0)
+                        return r;
+        }
+
         if (!MANAGER_IS_SYSTEM(u->manager))
                 return 0;