From 47731748e185460b6edb3a77c4e6ac54cf08b4bf Mon Sep 17 00:00:00 2001 From: Matt Wrock Date: Tue, 27 Sep 2016 01:24:34 -0700 Subject: [PATCH] ignore failures in sxs cleanup. unsure why its failing --- cookbooks/packer-templates/recipes/clean_sxs.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cookbooks/packer-templates/recipes/clean_sxs.rb b/cookbooks/packer-templates/recipes/clean_sxs.rb index c0c8eea..a2f67ea 100644 --- a/cookbooks/packer-templates/recipes/clean_sxs.rb +++ b/cookbooks/packer-templates/recipes/clean_sxs.rb @@ -1,7 +1,4 @@ -batch 'restore sxs health' do - code 'Dism.exe /online /Cleanup-Image /RestoreHealth' -end - batch 'clean SxS' do code 'Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase' + ignore_failure true end