Fix declaration of windows partition size
This commit is contained in:
parent
5ba869099e
commit
9543e7ed84
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ $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 = $winPartition.OwnerDocument.CreateElement("Size");
|
$size = ($partitionCreationContainer.SelectNodes("./ua:CreatePartition/ua:Size") | Select-Object -First 1).CloneNode($true);
|
||||||
$size.InnerText = "$((1 * 1024 * 1024) - $garbage)";
|
$size.InnerText = "$((1 * 1024 * 1024) - $garbage)";
|
||||||
$winPartition.RemoveChild($winPartition.SelectSingleNode("./ua:Extend", $namespace));
|
$winPartition.RemoveChild($winPartition.SelectSingleNode("./ua:Extend", $namespace));
|
||||||
$null = $winPartition.AppendChild($size);
|
$null = $winPartition.AppendChild($size);
|
||||||
|
|
Loading…
Reference in a new issue