Skip to content

Commit c6c6d34

Browse files
committed
install/baseline: Drop aarch64 reserved partition
This was originally done to match what CoreOS is doing, which is motivated by having Ignition configs that work cross-architecture. We don't have the same constraints or focus; we encourage operation at filesystem level in general. This just changes the baseline `to-disk` installer, anyone who wants to do things like cross-architecture matching can of course do so externally. Signed-off-by: Colin Walters <[email protected]>
1 parent 63d3e3e commit c6c6d34

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lib/src/install/baseline.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ pub(crate) fn install_create_rootfs(
246246
sgdisk.cmd.arg("-Z");
247247
sgdisk.cmd.arg(device.path());
248248
sgdisk.cmd.args(["-U", "R"]);
249-
#[allow(unused_assignments)]
250249
if cfg!(target_arch = "x86_64") {
251250
// BIOS-BOOT
252251
partno += 1;
@@ -258,15 +257,7 @@ pub(crate) fn install_create_rootfs(
258257
Some("21686148-6449-6E6F-744E-656564454649"),
259258
);
260259
} else if cfg!(target_arch = "aarch64") {
261-
// reserved
262-
partno += 1;
263-
sgdisk_partition(
264-
&mut sgdisk.cmd,
265-
partno,
266-
"0:+1M",
267-
"reserved",
268-
Some("8DA63339-0007-60C0-C436-083AC8230908"),
269-
);
260+
// Only UEFI here for now
270261
} else {
271262
anyhow::bail!("Unsupported architecture: {}", std::env::consts::ARCH);
272263
}

0 commit comments

Comments
 (0)