Fix non-functioning partition configuration

This commit is contained in:
Manuel Thalmann 2023-07-09 01:21:08 +02:00
parent 6ce18dfb0a
commit 29c180e8f6

View file

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