Subtract EFI partition from linux size

This commit is contained in:
Manuel Thalmann 2023-07-09 19:03:18 +02:00
parent 7366831361
commit b1fe52c7db

View file

@ -44,7 +44,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 = $partitionCreations[0].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) - 1024)";
$null = $partitionCreationContainer.AppendChild($newPartition); $null = $partitionCreationContainer.AppendChild($newPartition);
$partitionModificationContainer = $diskConfig.SelectSingleNode("./ua:ModifyPartitions", $namespace); $partitionModificationContainer = $diskConfig.SelectSingleNode("./ua:ModifyPartitions", $namespace);