Clone the correct ModifyPartition tag

This commit is contained in:
Manuel Thalmann 2023-07-09 00:23:50 +02:00
parent 79b11d3907
commit 8dded4bf73

View file

@ -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";