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ยง

collect_boot_binaries ๐Ÿ”’
Collect all BLS Type1 boot binaries and UKI binaries by scanning filesystem
collect_type1_boot_binaries ๐Ÿ”’
Scan for Type1 boot binaries (kernels + initrds) by looking for directories with that start with bootc_composefs-
collect_uki_binaries ๐Ÿ”’
Scan for UKI binaries in EFI/Linux/bootc
composefs_gc ๐Ÿ”’
List all bootloader entriesList all EROFS imagesList all state directoriesList staged depl if any
delete_kernel_initrd ๐Ÿ”’
delete_uki ๐Ÿ”’
Deletes the UKI uki_id and any addons specific to it
list_erofs_images ๐Ÿ”’
list_state_dirs ๐Ÿ”’

Type Aliasesยง

BootBinary ๐Ÿ”’