Set proper installation partition

This commit is contained in:
Manuel Thalmann 2023-07-09 01:34:44 +02:00
parent 29c180e8f6
commit 903c16c7f6

View file

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