Skip to content

Commit

Permalink
Merge pull request #705 from yoheiueda/enable-s390x
Browse files Browse the repository at this point in the history
install: Support the s390x architecture
  • Loading branch information
cgwalters authored Jul 18, 2024
2 parents 091840b + 9cf239b commit 934cc88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions lib/src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1101,10 +1101,6 @@ async fn prepare_install(
crate::cli::require_root()?;
require_host_pidns()?;

if cfg!(target_arch = "s390x") {
anyhow::bail!("Installation is not supported on this architecture yet");
}

let rootfs = cap_std::fs::Dir::open_ambient_dir("/", cap_std::ambient_authority())
.context("Opening /")?;

Expand Down
4 changes: 2 additions & 2 deletions lib/src/install/baseline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,6 @@ pub(crate) fn install_create_rootfs(
"BIOS-BOOT",
Some("21686148-6449-6E6F-744E-656564454649"),
);
} else if cfg!(target_arch = "aarch64") {
// Only UEFI here for now
} else if cfg!(target_arch = "powerpc64") {
// PowerPC-PReP-boot
partno += 1;
Expand All @@ -266,6 +264,8 @@ pub(crate) fn install_create_rootfs(
crate::bootloader::PREPBOOT_LABEL,
Some(crate::bootloader::PREPBOOT_GUID),
);
} else if cfg!(any(target_arch = "aarch64", target_arch = "s390x")) {
// No bootloader partition is necessary
} else {
anyhow::bail!("Unsupported architecture: {}", std::env::consts::ARCH);
}
Expand Down

0 comments on commit 934cc88

Please sign in to comment.