Skip to content

Commit 934cc88

Browse files
authored
Merge pull request #705 from yoheiueda/enable-s390x
install: Support the s390x architecture
2 parents 091840b + 9cf239b commit 934cc88

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

lib/src/install.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,10 +1101,6 @@ async fn prepare_install(
11011101
crate::cli::require_root()?;
11021102
require_host_pidns()?;
11031103

1104-
if cfg!(target_arch = "s390x") {
1105-
anyhow::bail!("Installation is not supported on this architecture yet");
1106-
}
1107-
11081104
let rootfs = cap_std::fs::Dir::open_ambient_dir("/", cap_std::ambient_authority())
11091105
.context("Opening /")?;
11101106

lib/src/install/baseline.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,6 @@ pub(crate) fn install_create_rootfs(
254254
"BIOS-BOOT",
255255
Some("21686148-6449-6E6F-744E-656564454649"),
256256
);
257-
} else if cfg!(target_arch = "aarch64") {
258-
// Only UEFI here for now
259257
} else if cfg!(target_arch = "powerpc64") {
260258
// PowerPC-PReP-boot
261259
partno += 1;
@@ -266,6 +264,8 @@ pub(crate) fn install_create_rootfs(
266264
crate::bootloader::PREPBOOT_LABEL,
267265
Some(crate::bootloader::PREPBOOT_GUID),
268266
);
267+
} else if cfg!(any(target_arch = "aarch64", target_arch = "s390x")) {
268+
// No bootloader partition is necessary
269269
} else {
270270
anyhow::bail!("Unsupported architecture: {}", std::env::consts::ARCH);
271271
}

0 commit comments

Comments
 (0)