| Top |
| OstreeSysrootUpgrader * | ostree_sysroot_upgrader_new () |
| OstreeSysrootUpgrader * | ostree_sysroot_upgrader_new_for_os () |
| OstreeSysrootUpgrader * | ostree_sysroot_upgrader_new_for_os_with_flags () |
| GKeyFile * | ostree_sysroot_upgrader_get_origin () |
| GKeyFile * | ostree_sysroot_upgrader_dup_origin () |
| gboolean | ostree_sysroot_upgrader_set_origin () |
| char * | ostree_sysroot_upgrader_get_origin_description () |
| gboolean | ostree_sysroot_upgrader_check_timestamps () |
| gboolean | ostree_sysroot_upgrader_pull () |
| gboolean | ostree_sysroot_upgrader_pull_one_dir () |
| gboolean | ostree_sysroot_upgrader_deploy () |
| typedef | OstreeSysrootUpgrader |
| enum | OstreeSysrootUpgraderFlags |
| enum | OstreeSysrootUpgraderPullFlags |
OstreeSysrootUpgrader * ostree_sysroot_upgrader_new (OstreeSysroot *sysroot,GCancellable *cancellable,GError **error);
OstreeSysrootUpgrader * ostree_sysroot_upgrader_new_for_os (OstreeSysroot *sysroot,const char *osname,GCancellable *cancellable,GError **error);
OstreeSysrootUpgrader * ostree_sysroot_upgrader_new_for_os_with_flags (OstreeSysroot *sysroot,const char *osname,OstreeSysrootUpgraderFlags flags,GCancellable *cancellable,GError **error);
sysroot |
||
osname |
Operating system name. |
[allow-none] |
flags |
Flags |
|
cancellable |
Cancellable |
|
error |
Error |
GKeyFile *
ostree_sysroot_upgrader_get_origin (OstreeSysrootUpgrader *self);
GKeyFile *
ostree_sysroot_upgrader_dup_origin (OstreeSysrootUpgrader *self);
gboolean ostree_sysroot_upgrader_set_origin (OstreeSysrootUpgrader *self,GKeyFile *origin,GCancellable *cancellable,GError **error);
Replace the origin with origin
.
char *
ostree_sysroot_upgrader_get_origin_description
(OstreeSysrootUpgrader *self);
gboolean ostree_sysroot_upgrader_check_timestamps (OstreeRepo *repo,const char *from_rev,const char *to_rev,GError **error);
Check that the timestamp on to_rev
is equal to or newer than
from_rev
. This protects systems against man-in-the-middle
attackers which provide a client with an older commit.
gboolean ostree_sysroot_upgrader_pull (OstreeSysrootUpgrader *self,OstreeRepoPullFlags flags,OstreeSysrootUpgraderPullFlags upgrader_flags,OstreeAsyncProgress *progress,gboolean *out_changed,GCancellable *cancellable,GError **error);
Perform a pull from the origin. First check if the ref has
changed, if so download the linked objects, and store the updated
ref locally. Then out_changed
will be TRUE.
If the origin remote is unchanged, out_changed
will be set to
FALSE.
self |
Upgrader |
|
flags |
Flags controlling pull behavior |
|
upgrader_flags |
Flags controlling upgrader behavior |
|
progress |
Progress. |
[allow-none] |
out_changed |
Whether or not the origin changed. |
[out] |
cancellable |
Cancellable |
|
error |
Error |
gboolean ostree_sysroot_upgrader_pull_one_dir (OstreeSysrootUpgrader *self,const char *dir_to_pull,OstreeRepoPullFlags flags,OstreeSysrootUpgraderPullFlags upgrader_flags,OstreeAsyncProgress *progress,gboolean *out_changed,GCancellable *cancellable,GError **error);
Like ostree_sysroot_upgrader_pull(), but allows retrieving just a
subpath of the tree. This can be used to download metadata files
from inside the tree such as package databases.
self |
Upgrader |
|
dir_to_pull |
Subdirectory path (should include a leading /) |
|
flags |
Flags controlling pull behavior |
|
upgrader_flags |
Flags controlling upgrader behavior |
|
progress |
Progress. |
[allow-none] |
out_changed |
Whether or not the origin changed. |
[out] |
cancellable |
Cancellable |
|
error |
Error |
gboolean ostree_sysroot_upgrader_deploy (OstreeSysrootUpgrader *self,GCancellable *cancellable,GError **error);
Write the new deployment to disk, perform a configuration merge with /etc, and update the bootloader configuration.