write_t2_simple

Function write_t2_simple 

Source
pub fn write_t2_simple<ObjectID: FsVerityHashValue>(
    t2: Type2Entry<ObjectID>,
    bootdir: &Path,
    root_id: &ObjectID,
    repo: &Repository<ObjectID>,
) -> Result<()>
Expand description

Writes a Type 2 boot entry (UKI) to the boot directory.

Validates that the UKI’s embedded composefs= parameter matches the expected root_id.

§Arguments

  • t2 - The Type 2 entry to write
  • bootdir - Path to the boot directory
  • root_id - The expected composefs root object ID
  • repo - The composefs repository