BootOps

Trait BootOps 

Source
pub trait BootOps<ObjectID: FsVerityHashValue> {
    // Required method
    fn transform_for_boot(
        &mut self,
        repo: &Repository<ObjectID>,
    ) -> Result<Vec<BootEntry<ObjectID>>>;
}
Expand description

Trait for transforming filesystem images for boot scenarios.

This trait provides functionality to prepare composefs filesystem images for booting by extracting boot resources and applying necessary transformations like SELinux labeling.

Required Methods§

Source

fn transform_for_boot( &mut self, repo: &Repository<ObjectID>, ) -> Result<Vec<BootEntry<ObjectID>>>

Transforms a filesystem image for boot by extracting boot entries and applying SELinux labels.

This method extracts boot resources from the filesystem, empties required top-level directories (/boot, /sysroot), and applies SELinux security contexts.

§Arguments
  • repo - The composefs repository containing filesystem objects
§Returns

A vector of boot entries extracted from the filesystem (Type 1 BLS entries, Type 2 UKIs, etc.)

Implementations on Foreign Types§

Source§

impl<ObjectID: FsVerityHashValue> BootOps<ObjectID> for FileSystem<ObjectID>

Source§

fn transform_for_boot( &mut self, repo: &Repository<ObjectID>, ) -> Result<Vec<BootEntry<ObjectID>>>

Implementors§