if (!glnx_opendirat (osdeploy_dfd, checkout_target_name, TRUE, &ret_deployment_dfd, error))
return FALSE;
- guint64 composefs_start_time = 0;
- guint64 composefs_end_time = 0;
-#ifdef HAVE_COMPOSEFS
/* TODO: Consider changing things in the future to parse the deployment config from memory, and
* if composefs is enabled, then we can check out in "user mode" (i.e. only have suid binaries
* enabled in composefs, etc.)
g_debug ("composefs enabled by config: %d repo: %d", composefs_enabled, repo->composefs_wanted);
if (repo->composefs_wanted == OT_TRISTATE_YES)
composefs_enabled = repo->composefs_wanted;
+
+ guint64 composefs_start_time = 0;
+ guint64 composefs_end_time = 0;
+#ifdef HAVE_COMPOSEFS
if (composefs_enabled != OT_TRISTATE_NO)
{
composefs_start_time = g_get_monotonic_time ();
}
else
g_debug ("not using composefs");
+#else
+ if (composefs_enabled == OT_TRISTATE_YES)
+ return glnx_throw (error, "composefs: enabled at runtime, but support is not compiled in");
#endif
*checkout_elapsed = (checkout_end_time - checkout_start_time);