Subtract EFI partition from linux size

This commit is contained in:
Manuel Thalmann 2023-07-09 19:03:18 +02:00
parent de3cdd3b1c
commit 62a1db9031

View file

@ -44,7 +44,7 @@ $Global:SetupConfigPostprocessor = {
# Add space before Windows installation... wha-!? For Linux, ofc! I use Arch Linux, btw.
$newPartition = $partitionCreations[0].CloneNode($true);
$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);
$partitionModificationContainer = $diskConfig.SelectSingleNode("./ua:ModifyPartitions", $namespace);