(stage0: Stage0<'_>)
| 723 | } |
| 724 | |
| 725 | async 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 | |
| 739 | pub async fn cmd_gateway_refresh(args: GatewayRefreshArgs) -> Result<()> { |
| 740 | let host_shared_dir = args.work_dir.join(HOST_SHARED_DIR_NAME); |
no test coverage detected