Fix non-functioning partition configuration

This commit is contained in:
Manuel Thalmann 2023-07-09 01:21:08 +02:00
parent 22ba700680
commit ad2f894400

View file

@ -15,7 +15,6 @@ $Global:SetupConfigPostprocessor = {
$installationPartition.InnerText = "$($newIndex + 1)";
$partitionCreationContainer = $diskConfig.SelectSingleNode("./ua:CreatePartitions", $namespace);
$partitionCreations = $partitionCreationContainer.SelectNodes("./ua:CreatePartition", $namespace);
$winPartition = ($partitionCreations | Select-Object -Last 1);
$garbage = 0;
@ -42,7 +41,7 @@ $Global:SetupConfigPostprocessor = {
}
# Add space before Windows installation... wha-!? For Linux, ofc! I use Arch Linux, btw.
$newPartition = $winPartition.CloneNode($true);
$newPartition = $partitionCreations[0].CloneNode($true);
$newPartition.SelectSingleNode("./ua:Order", $namespace).InnerText = "$newIndex";
$newPartition.SelectSingleNode("./ua:Size", $namespace).InnerText = "$(64 * 1024)";
$null = $partitionCreationContainer.AppendChild($newPartition);