[ostree] admin: Ensure /var/log/journal exists



commit 341923b928a970d3ee98db715947f726a331ba5e
Author: Colin Walters <walters verbum org>
Date:   Thu Jan 17 22:08:21 2013 -0500

    admin: Ensure /var/log/journal exists
    
    This is admittedly a hack, since the story is that services should be
    handling /var on their own.  But on the other hand the current systemd
    story is that admins should create it to enable it.  Possibly a better
    fix is --enable-journal-always or something for systemd.

 src/ostree/ot-admin-builtin-os-init.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/ostree/ot-admin-builtin-os-init.c b/src/ostree/ot-admin-builtin-os-init.c
index 123e085..0536167 100644
--- a/src/ostree/ot-admin-builtin-os-init.c
+++ b/src/ostree/ot-admin-builtin-os-init.c
@@ -63,10 +63,11 @@ ot_admin_builtin_os_init (int argc, char **argv, OtAdminBuiltinOpts *admin_opts,
   deploy_dir = ot_gfile_get_child_build_path (ostree_dir, "deploy", osname, NULL);
 
   /* Ensure core subdirectories of /var exist, since we need them for
-   * dracut generation, and the host will want them too.
+   * dracut generation, and the host will want them too.  Note that at
+   * the moment we pre-create /var/log/journal to cater to systemd.
    */
   g_clear_object (&dir);
-  dir = ot_gfile_get_child_build_path (deploy_dir, "var", "log", NULL);
+  dir = ot_gfile_get_child_build_path (deploy_dir, "var", "log", "journal", NULL);
   if (!gs_file_ensure_directory (dir, TRUE, cancellable, error))
     goto out;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]