/* This function deletes any files in the bootfs unreferenced by the active
* bootloader configuration.
*/
-static gboolean
-cleanup_bootfs (OstreeSysroot *self,
- GCancellable *cancellable,
- GError **error)
+gboolean
+_ostree_sysroot_cleanup_bootfs (OstreeSysroot *self,
+ GCancellable *cancellable,
+ GError **error)
{
/* Load all active bootcsums and overlays referenced by bootloader configuration. */
g_autoptr(GHashTable) active_boot_checksums =
if (!cleanup_old_deployments (self, cancellable, error))
return glnx_prefix_error (error, "Cleaning deployments");
- if (!cleanup_bootfs (self, cancellable, error))
+ if (!_ostree_sysroot_cleanup_bootfs (self, cancellable, error))
return glnx_prefix_error (error, "Cleaning bootfs");
OstreeRepo *repo = ostree_sysroot_repo (self);
GCancellable *cancellable,
GError **error);
+gboolean
+_ostree_sysroot_cleanup_bootfs (OstreeSysroot *self,
+ GCancellable *cancellable,
+ GError **error);
+
gboolean _ostree_sysroot_parse_bootdir_name (const char *name,
char **out_osname,
char **out_csum);