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 <sachinp@linux.ibm.com>
  • Loading branch information
sacsant committed Jun 26, 2024
1 parent 969d032 commit 1d84ee4
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 @@ -258,6 +258,16 @@ pub(crate) fn install_create_rootfs(
);
} else if cfg!(target_arch = "aarch64") {
// Only UEFI here for now
} else if cfg!(target_arch = "powerpc64") {
// PowerPC-PReP-boot
partno += 1;
sgdisk_partition(
&mut sgdisk.cmd,
partno,
"0:+4M",
"PowerPC-PReP-boot",
Some("9E1A2D38-C612-4316-AA26-8B49521E5A8B"),
);
} else {
anyhow::bail!("Unsupported architecture: {}", std::env::consts::ARCH);
}
Expand Down

0 comments on commit 1d84ee4

Please sign in to comment.