Assign fixed size to linux partition
This commit is contained in:
parent
ee8e4aa661
commit
01d54d4c8c
1 changed files with 1 additions and 7 deletions
|
@ -42,14 +42,9 @@ $Global:SetupConfigPostprocessor = {
|
||||||
}
|
}
|
||||||
|
|
||||||
# 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.
|
||||||
$size = ($partitionCreationContainer.SelectNodes("./ua:CreatePartition/ua:Size", $namespace) | Select-Object -First 1).CloneNode($true);
|
|
||||||
$size.InnerText = "$((64 * 1024) - $garbage)";
|
|
||||||
$extendTag = $winPartition.RemoveChild($winPartition.SelectSingleNode("./ua:Extend", $namespace));
|
|
||||||
$null = $winPartition.AppendChild($size);
|
|
||||||
$newPartition = $winPartition.CloneNode($true);
|
$newPartition = $winPartition.CloneNode($true);
|
||||||
|
|
||||||
$newPartition.SelectSingleNode("./ua:Order", $namespace).InnerText = "$newIndex";
|
$newPartition.SelectSingleNode("./ua:Order", $namespace).InnerText = "$newIndex";
|
||||||
$newPartition.SelectSingleNode("./ua:Size", $namespace).InnerText = "100";
|
$newPartition.SelectSingleNode("./ua:Size", $namespace).InnerText = "$(1 * 1024 * 1024)";
|
||||||
$null = $partitionCreationContainer.AppendChild($newPartition);
|
$null = $partitionCreationContainer.AppendChild($newPartition);
|
||||||
|
|
||||||
$partitionModificationContainer = $diskConfig.SelectSingleNode("./ua:ModifyPartitions", $namespace);
|
$partitionModificationContainer = $diskConfig.SelectSingleNode("./ua:ModifyPartitions", $namespace);
|
||||||
|
@ -57,7 +52,6 @@ $Global:SetupConfigPostprocessor = {
|
||||||
$newModification = $partitionModifications[2].CloneNode($true);
|
$newModification = $partitionModifications[2].CloneNode($true);
|
||||||
$newModification.SelectSingleNode("./ua:Order", $namespace).InnerText = "$newIndex";
|
$newModification.SelectSingleNode("./ua:Order", $namespace).InnerText = "$newIndex";
|
||||||
$newModification.SelectSingleNode("./ua:PartitionID", $namespace).InnerText = "$newIndex";
|
$newModification.SelectSingleNode("./ua:PartitionID", $namespace).InnerText = "$newIndex";
|
||||||
$null = $newModification.AppendChild($extendTag.CloneNode($true));
|
|
||||||
|
|
||||||
foreach ($partition in $partitionModifications) {
|
foreach ($partition in $partitionModifications) {
|
||||||
$partitionID = [int]$partition.SelectSingleNode("./ua:PartitionID", $namespace).InnerText;
|
$partitionID = [int]$partition.SelectSingleNode("./ua:PartitionID", $namespace).InnerText;
|
||||||
|
|
Loading…
Reference in a new issue