diff options
author | Colin Walters <walters@verbum.org> | 2016-03-03 11:39:33 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2016-03-03 14:21:57 -0500 |
commit | fbd9409ebb76c66c5fa33c207f97807deb70951e (patch) | |
tree | 7392e38a48254f2dbb48e49f7fff9cc91a1cadd2 /src/libostree/ostree-sysroot.h | |
parent | 7ace5d35bd8b9d4d407b725518497df425376573 (diff) | |
download | ostree-fbd9409ebb76c66c5fa33c207f97807deb70951e.tar.gz |
lib: Add ostree_sysroot_init_osname() API, bump mtime
And change the command line to use it. rpm-ostree had a copy
of this code, and thus there's a clear reason to have an API.
While we're moving this into API, ensure the mtime on deploy is bumped
after an osname is created, so that daemons like rpm-ostree can notice
changes. (In reality, creating the directory should do this, but
let's be double sure)
Diffstat (limited to 'src/libostree/ostree-sysroot.h')
-rw-r--r-- | src/libostree/ostree-sysroot.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libostree/ostree-sysroot.h b/src/libostree/ostree-sysroot.h index bce86985..cab59d0a 100644 --- a/src/libostree/ostree-sysroot.h +++ b/src/libostree/ostree-sysroot.h @@ -98,6 +98,12 @@ _OSTREE_PUBLIC void ostree_sysroot_unlock (OstreeSysroot *self); _OSTREE_PUBLIC +gboolean ostree_sysroot_init_osname (OstreeSysroot *self, + const char *osname, + GCancellable *cancellable, + GError **error); + +_OSTREE_PUBLIC gboolean ostree_sysroot_cleanup (OstreeSysroot *self, GCancellable *cancellable, GError **error); |