deploy: Find kernel/initramfs consistently from filesystem

I'm porting the deployment code to be fd-relative, but part of the
logic was using `GFile` to talk to `OstreeRepoFile` to determine the
"bootcsum" (boot config checksum) before checking out the file tree.

We can avoid having both code paths by checking out the tree first,
then looking at it on the filesystem.
This commit is contained in:
Colin Walters committed 2015-12-19 08:24:51 -05:00
1 parent 6f96571679
commit 506a891e36
3 files changed
+58 -20

No files matched your search

+9 -1
View File
@@ -20,7 +20,7 @@
#include "config.h"
#include "ostree-deployment.h"
#include "ostree-deployment-private.h"
#include "libglnx.h"
struct _OstreeDeployment
@@ -129,6 +129,14 @@ ostree_deployment_set_origin (OstreeDeployment *self, GKeyFile *origin)
self->origin = g_key_file_ref (origin);
}
void
_ostree_deployment_set_bootcsum (OstreeDeployment *self,
const char *bootcsum)
{
g_free (self->bootcsum);
self->bootcsum = g_strdup (bootcsum);
}
/**
* ostree_deployment_clone:
* @self: Deployment