Skip to content

Commit

Permalink
install: Error out early on s390x
Browse files Browse the repository at this point in the history
xref coreos/bootupd#550

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Oct 24, 2023
1 parent b4ecba0 commit 57d75f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,10 @@ async fn prepare_install(
crate::cli::require_root()?;
require_systemd_pid1()?;

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

0 comments on commit 57d75f6

Please sign in to comment.