From b7f7a53b67344d9765559ac4c5fca40c7857dcdc Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 23 Mar 2024 13:57:18 +0100 Subject: [PATCH] Add comments to the setup script --- profiles/DerGeret/Windows/Setup.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) 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); }