packer: add pause after windows update (#4192)

This commit is contained in:
Aleksandr Chebotov
2021-09-30 20:17:00 +03:00
committed by GitHub
parent 6f39c8aef0
commit 9c5cf733d9

View File

@@ -144,11 +144,12 @@
{
"type": "windows-restart",
"check_registry": true,
"restart_check_command": "powershell -command \"& {if (-not (Get-Process TiWorker.exe -ErrorAction SilentlyContinue)) { Write-Output 'Restart complete' }}\"",
"restart_check_command": "powershell -command \"& {if ((-not (Get-Process TiWorker.exe -ErrorAction SilentlyContinue)) -and (-not [System.Environment]::HasShutdownStarted) ) { Write-Output 'Restart complete' }}\"",
"restart_timeout": "30m"
},
{
"type": "powershell",
"pause_before": "2m",
"scripts": [
"{{ template_dir }}/scripts/Installers/Install-VCRedist.ps1",
"{{ template_dir }}/scripts/Installers/Install-Docker.ps1",