diff --git a/profiles/DerGeret/Windows/Setup.ps1 b/profiles/DerGeret/Windows/Setup.ps1 index 0f73a1a0..93085084 100644 --- a/profiles/DerGeret/Windows/Setup.ps1 +++ b/profiles/DerGeret/Windows/Setup.ps1 @@ -15,7 +15,6 @@ $Global:SetupConfigPostprocessor = { $installationPartition.InnerText = "$($newIndex + 1)"; $partitionCreationContainer = $diskConfig.SelectSingleNode("./ua:CreatePartitions", $namespace); $partitionCreations = $partitionCreationContainer.SelectNodes("./ua:CreatePartition", $namespace); - $winPartition = ($partitionCreations | Select-Object -Last 1); $garbage = 0; @@ -42,7 +41,7 @@ $Global:SetupConfigPostprocessor = { } # Add space before Windows installation... wha-!? For Linux, ofc! I use Arch Linux, btw. - $newPartition = $winPartition.CloneNode($true); + $newPartition = $partitionCreations[0].CloneNode($true); $newPartition.SelectSingleNode("./ua:Order", $namespace).InnerText = "$newIndex"; $newPartition.SelectSingleNode("./ua:Size", $namespace).InnerText = "$(64 * 1024)"; $null = $partitionCreationContainer.AppendChild($newPartition);