-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cumulative update not being picked up #88
Comments
Does it show any updates at all? Try to use the {
"type": "windows-update",
"filters": [
"include:$true"
]
} If it still does not show anything, something in your aws setup is preventing windows update from working. |
Thanks will check that out , should i have both included "include:$true" and "include:$.Title -like 'Cumulative Update'" |
snapshot of the log |
We have 2 questions
Our pipeline ran on 10th that's it missed this one 2021-03 Cumulative Update for Windows Server 2016 for x64-based Systems (KB5000803) Any specific reason why this missed and how do we handle such cases |
It should pick up the same updates that are displayed by the windows update UI. I don't known exactly how microsoft distributes the windows updates, it seems that some updates are gradually rolled out, which means, not everyone gets them at the same time. Also, sometimes updates are superseded by others. Also, sometimes updates are retracted. Also, this is all driven by the windows update backend services and the client does not have much to say, so it more-or-less just installs whatever the backend says. If you want to have a little bit more control over this, you have to use something like WSUS. When you find out why its behaving like you've described, please update this issue with your findings. |
Packer version is 1.6.1
Windows update version is 0.10.1
We ran windows update on a windows image released by aws ( "ImageLocation": "amazon/Windows_Server-2016-English-Core-Base-2021.02.10")
As per MS catalog there was a cumulative update available for .net , but this was not picked up by the windows update.
This is the code in the packer template, we install SSU restart and look for cumulative update .
{
"type": "windows-update",
"search_criteria": "IsInstalled=0",
"filters": [
"include:$.Title -like 'Servicing Stack Update'"
],
"update_limit": 25
},
{
"pause_before": "10s",
"type": "windows-restart",
"restart_check_command": "powershell -command "& {Write-Output 'restarted.'}""
},
{
"type": "windows-update",
"search_criteria": "IsInstalled=0",
"filters": [
"include:$.Title -like 'Cumulative Update'"
],
"update_limit": 25
},
The text was updated successfully, but these errors were encountered: