diff --git a/profiles/DerGeret/Windows/Setup.ps1 b/profiles/DerGeret/Windows/Setup.ps1 index ac90bf24..e0f64f4c 100644 --- a/profiles/DerGeret/Windows/Setup.ps1 +++ b/profiles/DerGeret/Windows/Setup.ps1 @@ -112,12 +112,18 @@ function Initialize-SetupConfig() { $partitionModificationContainer = $diskConfig.SelectSingleNode("./ua:ModifyPartitions", $namespace); $partitionModifications = $partitionModificationContainer.SelectNodes("./ua:ModifyPartition", $namespace); + + # Resize EFI partition to 1GB $partitionCreations[1].SelectSingleNode("./ua:Size", $namespace).InnerText = "$(1024)"; + + # Swap Windows RE partition (partition #1) and boot partition (partition #2) Invoke-PartitionRelocation 2 1; # Add space before Windows installation... wha-!? For Linux, ofc! I use Arch Linux, btw. $swapSpacer = 100; Add-Partition 2 $swapSpacer; + + # Add a 1.2 TB partition for Linux Add-Partition 3 ((1.2 * 1024 * 1024) - 1024 - $swapSpacer); }