Add a spacer for the swap partition

This commit is contained in:
Manuel Thalmann 2023-07-09 23:34:22 +02:00
parent f85ee116a0
commit 120bf7eafa

View file

@ -110,7 +110,9 @@ $Global:SetupConfigPostprocessor = {
Invoke-PartitionRelocation 2 1; Invoke-PartitionRelocation 2 1;
# 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.
Add-Partition 2 ((64 * 1024) - 1024); $swapSpacer = 100;
Add-Partition 2 $swapSpacer;
Add-Partition 3 ((64 * 1024) - 1024 - $swapSpacer);
} }
. "$PSScriptRoot/../../../scripts/Windows/OS/Setup.ps1"; . "$PSScriptRoot/../../../scripts/Windows/OS/Setup.ps1";