Clone the correct ModifyPartition tag

This commit is contained in:
Manuel Thalmann 2023-07-09 00:23:50 +02:00
parent b4cd26632d
commit 659f7c32f8

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