From ea705c4d6334facde0d6a2671af97af056057243 Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Mon, 13 Dec 2021 14:54:37 +0300 Subject: [PATCH] [Windows] Wait Containers installation feature (#4720) --- images/win/windows2022.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/win/windows2022.json b/images/win/windows2022.json index 555f3d3e7..251507985 100644 --- a/images/win/windows2022.json +++ b/images/win/windows2022.json @@ -140,11 +140,11 @@ { "type": "windows-restart", "check_registry": true, + "restart_check_command": "powershell -command \"& {while ( (Get-WindowsOptionalFeature -Online -FeatureName Containers -ErrorAction SilentlyContinue).State -ne 'Enabled' ) { Start-Sleep 30; Write-Output 'InProgress' }}\"", "restart_timeout": "10m" }, { "type": "powershell", - "pause_before": "2m", "scripts": [ "{{ template_dir }}/scripts/Installers/Install-Docker.ps1", "{{ template_dir }}/scripts/Installers/Install-PowershellCore.ps1"