From 812a8a7f564da71ce9217e33cefd6ac9cf0816c1 Mon Sep 17 00:00:00 2001 From: he3als <65787561+he3als@users.noreply.github.com> Date: Sat, 15 Jun 2024 14:42:36 +0100 Subject: [PATCH] fix: clean component store after optional features (#1124) ### 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. --- src/playbook/Configuration/atlas/start.yml | 3 +++ src/playbook/Executables/CLEANUP.ps1 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/playbook/Configuration/atlas/start.yml b/src/playbook/Configuration/atlas/start.yml index e4116999ef..3ee7b65310 100644 --- a/src/playbook/Configuration/atlas/start.yml +++ b/src/playbook/Configuration/atlas/start.yml @@ -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'} diff --git a/src/playbook/Executables/CLEANUP.ps1 b/src/playbook/Executables/CLEANUP.ps1 index b22a53c8cf..de4d2da7fb 100644 --- a/src/playbook/Executables/CLEANUP.ps1 +++ b/src/playbook/Executables/CLEANUP.ps1 @@ -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