Top | ![]() |
![]() |
![]() |
![]() |
GType | ostree_sysroot_get_type () |
OstreeSysroot * | ostree_sysroot_new () |
OstreeSysroot * | ostree_sysroot_new_default () |
GFile * | ostree_sysroot_get_path () |
gboolean | ostree_sysroot_load () |
gboolean | ostree_sysroot_ensure_initialized () |
int | ostree_sysroot_get_bootversion () |
int | ostree_sysroot_get_subbootversion () |
GPtrArray * | ostree_sysroot_get_deployments () |
OstreeDeployment * | ostree_sysroot_get_booted_deployment () |
GFile * | ostree_sysroot_get_deployment_directory () |
GFile * | ostree_sysroot_get_deployment_origin_path () |
gboolean | ostree_sysroot_cleanup () |
gboolean | ostree_sysroot_get_repo () |
gboolean | ostree_sysroot_write_deployments () |
OstreeDeployment * | ostree_sysroot_get_merge_deployment () |
A OstreeSysroot object represents a physical root filesystem, which in particular should contain a toplevel /ostree directory. Inside this directory is an OstreeRepo in /ostree/repo, plus a set of deployments in /ostree/deploy.
gboolean ostree_sysroot_load (OstreeSysroot *self
,GCancellable *cancellable
,GError **error
);
Load deployment list, bootversion, and subbootversion from the
rootfs self
.
gboolean ostree_sysroot_ensure_initialized (OstreeSysroot *self
,GCancellable *cancellable
,GError **error
);
Ensure that self
is set up as a valid rootfs, by creating
/ostree/repo, among other things.
OstreeDeployment *
ostree_sysroot_get_booted_deployment (OstreeSysroot *self
);
GFile * ostree_sysroot_get_deployment_directory (OstreeSysroot *self
,OstreeDeployment *deployment
);
GFile *
ostree_sysroot_get_deployment_origin_path
(GFile *deployment_path
);
gboolean ostree_sysroot_cleanup (OstreeSysroot *self
,GCancellable *cancellable
,GError **error
);
Delete any state that resulted from a partially completed transaction, such as incomplete deployments.
gboolean ostree_sysroot_get_repo (OstreeSysroot *self
,OstreeRepo **out_repo
,GCancellable *cancellable
,GError **error
);
Retrieve the OSTree repository in sysroot self
.
self |
Sysroot |
|
out_repo |
Repository in sysroot |
[out] |
cancellable |
Cancellable |
|
error |
Error |
gboolean ostree_sysroot_write_deployments (OstreeSysroot *self
,GPtrArray *new_deployments
,GCancellable *cancellable
,GError **error
);
Assuming new_deployments
have already been deployed in place on
disk, atomically update bootloader configuration.
self |
Sysroot |
|
new_deployments |
List of new deployments. |
[element-type OstreeDeployment] |
cancellable |
Cancellable |
|
error |
Error |
OstreeDeployment * ostree_sysroot_get_merge_deployment (OstreeSysroot *self
,const char *osname
);
Find the deployment to use as a configuration merge source; this is the first one in the current deployment list which matches osname.