KTSTR_GUEST_INIT_ENV

Constant KTSTR_GUEST_INIT_ENV 

Source
pub const KTSTR_GUEST_INIT_ENV: &str = "KTSTR_GUEST_INIT";
Expand description

Name of the environment variable cargo-ktstr’s spawn-pipeline sets to “1” inside the guest-side init binary so the binary detects it’s running as the guest init. Presence check via var_os(...).is_none() at crate::workload::spawn — absent in host-side dispatch.

Deviates from the contract-default empty-as-unset rule: var_os does not distinguish empty from non-empty, so KTSTR_GUEST_INIT= (empty) is observed as SET and disables the orphan-detection fast-path. Same shape as KTSTR_NO_SKIP_MODE_ENV.