Add comments to the setup script
This commit is contained in:
parent
c5a401f7eb
commit
b7f7a53b67
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue