Set proper installation partition

This commit is contained in:
Manuel Thalmann 2023-07-09 01:34:44 +02:00
parent ad2f894400
commit 0abb570bf9

View file

@ -12,7 +12,7 @@ $Global:SetupConfigPostprocessor = {
$installationPartition = $setupComponent.SelectSingleNode("./ua:ImageInstall/ua:OSImage/ua:InstallTo/ua:PartitionID", $namespace);
$newIndex = 2;
$installationPartition.InnerText = "$($newIndex + 1)";
$installationPartition.InnerText = "$($newIndex + 3)";
$partitionCreationContainer = $diskConfig.SelectSingleNode("./ua:CreatePartitions", $namespace);
$partitionCreations = $partitionCreationContainer.SelectNodes("./ua:CreatePartition", $namespace);