Skip to content

Commit

Permalink
fix: clean component store after optional features (#1124)
Browse files Browse the repository at this point in the history
### Questions
- [x] Did you test your changes or double-check that they work?
- [x] Did you read and follow the [Atlas Contribution
Guidelines](https://docs.atlasos.net/contributions/)?

### Describe your pull request

Disables cleaning the component store and Windows Update in Disk Cleanup
(`cleanmgr`) as I'm guessing this causes DISM to randomly hang when
changing features.
  • Loading branch information
he3als committed Jun 15, 2024
1 parent ef9efab commit 812a8a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/playbook/Configuration/atlas/start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ actions:
- !writeStatus: {status: 'Disabling Steps Recorder'}
- !run: {exe: 'DISM.exe', args: '/Online /Remove-Capability /CapabilityName:"App.StepsRecorder~~~~0.0.1.0" /NoRestart', weight: 30}

- !writeStatus: {status: 'Cleaning the component store'}
- !run: {exe: 'DISM.exe', args: '/Online /Cleanup-Image /StartComponentCleanup', weight: 50}

# Initial software
# 7-Zip, Visual C++ Runtimes, DirectX
- !writeStatus: {status: 'Installing utilities'}
Expand Down
2 changes: 1 addition & 1 deletion src/playbook/Executables/CLEANUP.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Invoke-AtlasDiskCleanup {
"System error minidump files" = 2
"Temporary Files" = 0
"Thumbnail Cache" = 2
"Update Cleanup" = 2
"Update Cleanup" = 0
"User file versions" = 2
"Windows Error Reporting Files" = 2
"Windows Defender" = 2
Expand Down

0 comments on commit 812a8a7

Please sign in to comment.