MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / before_launch

Method before_launch

crates/openshell-driver-vm/src/driver.rs:6849–6862  ·  view source on GitHub ↗
(
            &self,
            _sandbox: &Sandbox,
            _state_dir: &Path,
            plan: &mut LaunchPlan,
        )

Source from the content-addressed store, hash-verified

6847 }
6848
6849 async fn before_launch(
6850 &self,
6851 _sandbox: &Sandbox,
6852 _state_dir: &Path,
6853 plan: &mut LaunchPlan,
6854 ) -> LifecycleResult<()> {
6855 if plan.backend != VmBackend::Qemu {
6856 return Err(LifecycleError::new(
6857 "qemu-requiring extension demands QEMU backend",
6858 ));
6859 }
6860 plan.env.push("EXT_DECLARED_QEMU=1".to_string());
6861 Ok(())
6862 }
6863 }
6864
6865 #[derive(Debug)]

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected