build_ukify

Function build_ukify 

Source
pub(crate) fn build_ukify(
    rootfs: &Utf8Path,
    extra_kargs: &[String],
    args: &[OsString],
) -> Result<()>
Expand description

Build a UKI from the given rootfs.

This function:

  1. Verifies that ukify is available
  2. Finds the kernel in the rootfs
  3. Computes the composefs digest
  4. Reads kernel arguments from kargs.d
  5. Appends any additional kargs provided via –karg
  6. Invokes ukify with computed arguments plus any pass-through args