From 29c180e8f65e26432e84ab11807e4574d1f0e799 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 9 Jul 2023 01:21:08 +0200 Subject: [PATCH] Fix non-functioning partition configuration --- profiles/DerGeret/Windows/Setup.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);