[ostree] ostadmin: Also ensure /ostree/modules exists
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] ostadmin: Also ensure /ostree/modules exists
- Date: Fri, 31 Aug 2012 00:43:37 +0000 (UTC)
commit 38d62d79a28fd226d061c39dd8c1f0dad37d9ce9
Author: Colin Walters <walters verbum org>
Date: Thu Aug 30 17:42:36 2012 -0700
ostadmin: Also ensure /ostree/modules exists
We depend on host kernel for now.
src/ostadmin/ot-admin-builtin-init.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/ostadmin/ot-admin-builtin-init.c b/src/ostadmin/ot-admin-builtin-init.c
index efef9d3..a96c02a 100644
--- a/src/ostadmin/ot-admin-builtin-init.c
+++ b/src/ostadmin/ot-admin-builtin-init.c
@@ -53,6 +53,13 @@ ot_admin_builtin_init (int argc, char **argv, GError **error)
dir = ot_gfile_from_build_path (opt_ostree_dir, "repo", NULL);
if (!ot_gfile_ensure_directory (dir, TRUE, error))
goto out;
+
+ /* We presently copy over host kernel modules */
+ g_clear_object (&dir);
+ dir = ot_gfile_from_build_path (opt_ostree_dir, "modules", NULL);
+ if (!ot_gfile_ensure_directory (dir, TRUE, error))
+ goto out;
+
g_clear_object (&dir);
dir = ot_gfile_from_build_path (opt_ostree_dir, "repo", "objects", NULL);
if (!g_file_query_exists (dir, NULL))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]