From 659f7c32f88fb4c914e06af9d7229d481d73e482 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 9 Jul 2023 00:23:50 +0200 Subject: [PATCH] Clone the correct `ModifyPartition` tag --- profiles/DerGeret/Windows/Setup.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/DerGeret/Windows/Setup.ps1 b/profiles/DerGeret/Windows/Setup.ps1 index 0f8a90dc..f167deff 100644 --- a/profiles/DerGeret/Windows/Setup.ps1 +++ b/profiles/DerGeret/Windows/Setup.ps1 @@ -53,7 +53,7 @@ $Global:SetupConfigPostprocessor = { $partitionModificationContainer = $diskConfig.SelectSingleNode("./ua:ModifyPartitions", $namespace); $partitionModifications = $partitionModificationContainer.SelectNodes("./ua:ModifyPartition", $namespace); - $newModification = $partitionModifications[1].CloneNode($true); + $newModification = $partitionModifications[2].CloneNode($true); $newModification.SelectSingleNode("./ua:Order", $namespace).InnerText = "$newIndex"; $newModification.SelectSingleNode("./ua:PartitionID", $namespace).InnerText = "$newIndex";