os-init: don't create /var/log/journal on deploy

Leave the policy of whether to persistently store journal logs to the
system integrator when the default journald configuration is in use.

https://bugzilla.gnome.org/show_bug.cgi?id=728762
This commit is contained in:
Cosimo Cecchi 2014-04-22 15:36:03 -07:00 committed by Colin Walters
parent 32663a5a50
commit 4903fba08c
1 changed files with 1 additions and 7 deletions

View File

@ -62,15 +62,9 @@ ot_admin_builtin_os_init (int argc, char **argv, OstreeSysroot *sysroot, GCancel
deploy_dir = ot_gfile_get_child_build_path (ostree_sysroot_get_path (sysroot), "ostree", "deploy", osname, NULL); deploy_dir = ot_gfile_get_child_build_path (ostree_sysroot_get_path (sysroot), "ostree", "deploy", osname, NULL);
/* Ensure core subdirectories of /var exist, since we need them for /* Ensure core subdirectories of /var exist, since we need them for
* dracut generation, and the host will want them too. Note that at * dracut generation, and the host will want them too.
* the moment we pre-create /var/log/journal to cater to systemd.
*/ */
g_clear_object (&dir); g_clear_object (&dir);
dir = ot_gfile_get_child_build_path (deploy_dir, "var", "log", "journal", NULL);
if (!gs_file_ensure_directory (dir, TRUE, cancellable, error))
goto out;
g_clear_object (&dir);
dir = ot_gfile_get_child_build_path (deploy_dir, "var", "tmp", NULL); dir = ot_gfile_get_child_build_path (deploy_dir, "var", "tmp", NULL);
if (!gs_file_ensure_directory (dir, TRUE, cancellable, error)) if (!gs_file_ensure_directory (dir, TRUE, cancellable, error))
goto out; goto out;