Module gc

Module gc 

Source
Expand description

This module handles the case when deleting a deployment fails midway

There could be the following cases (See ./delete.rs:delete_composefs_deployment):

  • We delete the bootloader entry but fail to delete image
  • We delete bootloader + image but fail to delete the state/unrefenced objects etc

Functionsยง

composefs_gc ๐Ÿ”’
List all bootloader entriesList all EROFS imagesList all state directoriesList staged depl if any
gc_objects ๐Ÿ”’
Deletes objects in sysroot/composefs/objects that are not being referenced by any of the present EROFS images
list_bootloader_entries ๐Ÿ”’
Get all Type1/Type2 bootloader entries
list_erofs_images ๐Ÿ”’
list_state_dirs ๐Ÿ”’