MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / do_sys_setup

Function do_sys_setup

dstack-util/src/system_setup.rs:725–737  ·  view source on GitHub ↗
(stage0: Stage0<'_>)

Source from the content-addressed store, hash-verified

723}
724
725async fn do_sys_setup(stage0: Stage0<'_>) -> Result<()> {
726 if stage0.shared.app_compose.secure_time {
727 info!("Waiting for the system time to be synchronized");
728 cmd! {
729 chronyc waitsync 30 0.1 0 5;
730 }
731 .context("Failed to sync system time")?;
732 } else {
733 info!("System time will be synchronized by chronyd in background");
734 }
735 let stage1 = stage0.setup_fs().await?;
736 stage1.setup().await
737}
738
739pub async fn cmd_gateway_refresh(args: GatewayRefreshArgs) -> Result<()> {
740 let host_shared_dir = args.work_dir.join(HOST_SHARED_DIR_NAME);

Callers 1

cmd_sys_setupFunction · 0.85

Calls 2

setup_fsMethod · 0.80
setupMethod · 0.80

Tested by

no test coverage detected