diff --git a/profiles/DerGeret/Windows/Setup.ps1 b/profiles/DerGeret/Windows/Setup.ps1 index 98c818f0..a1866ece 100644 --- a/profiles/DerGeret/Windows/Setup.ps1 +++ b/profiles/DerGeret/Windows/Setup.ps1 @@ -20,12 +20,13 @@ $Global:SetupConfigPostprocessor = { foreach ($partition in $partitionCreations) { $order = [int]$partition.SelectSingleNode("./ua:Order", $namespace).InnerText; - $garbage += [int]$partition.SelectSingleNode("./ua:Size", $namespace).InnerText; $newOrder = $order; if ($order -eq 2) { $newOrder--; } else { + $garbage += [int]$partition.SelectSingleNode("./ua:Size", $namespace).InnerText; + if ($newOrder -lt 2) { $newOrder++; }