Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Predictable Windows Recovery Partition #280

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions windows/http/Autounattend.xml.ISO.template
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@
<Type>MSR</Type>
</CreatePartition>
<CreatePartition wcm:action="add">
<Extend>true</Extend>
<Order>3</Order>
<Type>Primary</Type>
<Size>768</Size>
</CreatePartition>
<CreatePartition wcm:action="add">
<Order>4</Order>
<Extend>true</Extend>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
Expand All @@ -30,9 +35,16 @@
<PartitionID>1</PartitionID>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Label>WinRE</Label>
<Format>NTFS</Format>
<Order>2</Order>
<TypeID>DE94BBA4-06D1-4D40-A16A-BFD50179D6AC</TypeID>
<PartitionID>3</PartitionID>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Format>NTFS</Format>
<Order>3</Order>
<PartitionID>4</PartitionID>
<Label>System</Label>
</ModifyPartition>
</ModifyPartitions>
Expand All @@ -43,7 +55,7 @@
<ImageInstall>
<OSImage>
<InstallTo>
<PartitionID>3</PartitionID>
<PartitionID>4</PartitionID>
<DiskID>0</DiskID>
</InstallTo>
<InstallToAvailablePartition>false</InstallToAvailablePartition>
Expand Down
2 changes: 1 addition & 1 deletion windows/windows.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ build {
"source scripts/setup-nbd",
"TMP_DIR=$(mktemp -d /tmp/packer-maas-XXXX)",
"echo 'Adding curtin-hooks to image...'",
"mount -t ntfs $${nbd}p3 $TMP_DIR",
"mount -t ntfs $${nbd}p4 $TMP_DIR",
"mkdir -p $TMP_DIR/curtin",
"cp ./curtin/* $TMP_DIR/curtin/",
"sync -f $TMP_DIR/curtin",
Expand Down