Skip to main content

write_t2_simple

Function write_t2_simple 

Source
pub fn write_t2_simple<ObjectID: FsVerityHashValue>(
    t2: Type2Entry<ObjectID>,
    bootdir: &Path,
    acceptable_digests: &[&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 karg (composefs= or composefs.digest=) matches one of the expected acceptable_digests.

§Arguments

  • t2 - The Type 2 entry to write
  • bootdir - Path to the boot directory
  • acceptable_digests - The composefs root object IDs the UKI may carry
  • repo - The composefs repository