[ostree/wip/libsysroot: 6/9] sysroot: Ensure we create /boot/loader.%d/entries even if there are no deployments
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree/wip/libsysroot: 6/9] sysroot: Ensure we create /boot/loader.%d/entries even if there are no deployments
- Date: Thu, 3 Oct 2013 23:24:57 +0000 (UTC)
commit ae2234b183cc13e8e87073962a4c0991fef01bcc
Author: Colin Walters <walters verbum org>
Date: Thu Oct 3 18:31:07 2013 -0400
sysroot: Ensure we create /boot/loader.%d/entries even if there are no deployments
Not doing so breaks things, and we should support this.
src/libostree/ostree-sysroot-deploy.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/libostree/ostree-sysroot-deploy.c b/src/libostree/ostree-sysroot-deploy.c
index 229bf15..f53bc2c 100644
--- a/src/libostree/ostree-sysroot-deploy.c
+++ b/src/libostree/ostree-sysroot-deploy.c
@@ -910,11 +910,17 @@ ostree_sysroot_write_deployments (OstreeSysroot *self,
{
int new_bootversion = self->bootversion ? 0 : 1;
gs_unref_object OstreeBootloader *bootloader = _ostree_sysroot_query_bootloader (self);
+ gs_unref_object GFile *new_loader_entries_dir = NULL;
if (bootloader)
g_print ("Detected bootloader: %s\n", _ostree_bootloader_get_name (bootloader));
else
g_print ("Detected bootloader: (unknown)\n");
+
+ new_loader_entries_dir = ot_gfile_resolve_path_printf (self->path, "boot/loader.%d/entries",
+ new_bootversion);
+ if (!gs_file_ensure_directory (new_loader_entries_dir, TRUE, cancellable, error))
+ goto out;
for (i = 0; i < new_deployments->len; i++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]