Skip to content

Commit

Permalink
Add support for ppc64le architecture
Browse files Browse the repository at this point in the history
 Running bootc install commands on ppc64le system bails out
 with unsupported architecture error.

 ERROR Installing to disk: Creating rootfs: Unsupported architecture: powerpc64

 This patch enables support for ppc64le arch.

Signed-off-by: Sachin Sant <[email protected]>
  • Loading branch information
sacsant committed Jun 25, 2024
1 parent 969d032 commit 4839207
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/src/install/baseline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,16 @@ pub(crate) fn install_create_rootfs(
"BIOS-BOOT",
Some("21686148-6449-6E6F-744E-656564454649"),
);
} else if cfg!(target_arch = "powerpc64") {
// BIOS-BOOT
partno += 1;
sgdisk_partition(
&mut sgdisk.cmd,
partno,
"0:+4M",
"BIOS-BOOT",
Some("9E1A2D38-C612-4316-AA26-8B49521E5A8B"),
);
} else if cfg!(target_arch = "aarch64") {
// Only UEFI here for now
} else {
Expand Down

0 comments on commit 4839207

Please sign in to comment.