pub(crate) fn want_bootable_pull(
bootable: bool,
has_expected_digest: bool,
xattrs: Option<XattrFiltering>,
) -> boolExpand description
Whether an initial pull() call (from pull_stream or cfsctl’s
OciCommand::Pull handler) should request the boot-transformed EROFS
variant via PullOptions::bootable, so it’s produced in the same pass
over the OCI layers instead of a subsequent generate_boot_image call
re-walking them.
false whenever that wouldn’t actually save the second walk:
bootableis not requested at all.has_expected_digest: the digest-recovery search path must run withgenerate_boot_imagenot yet having generated anything, so its search over every mode/version combination stays meaningful.xattrsrequests a non-default mode:PullOptions::bootableonly supports [composefs::generic_tree::OciTransformOptions::default()].
pub(crate) so cfsctl’s own OciCommand::Pull handler in lib.rs
can share this decision table instead of duplicating it.