From 38d62d79a28fd226d061c39dd8c1f0dad37d9ce9 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 30 Aug 2012 17:42:36 -0700 Subject: [PATCH] ostadmin: Also ensure /ostree/modules exists We depend on host kernel for now. --- src/ostadmin/ot-admin-builtin-init.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ostadmin/ot-admin-builtin-init.c b/src/ostadmin/ot-admin-builtin-init.c index efef9d32..a96c02a4 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))