From 57d75f6f0eda0c794f444747f808e8339475a6f7 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 24 Oct 2023 10:32:12 -0400 Subject: [PATCH] install: Error out early on s390x xref https://github.com/coreos/bootupd/issues/550 Signed-off-by: Colin Walters --- lib/src/install.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/install.rs b/lib/src/install.rs index 3cc5c21b9..4bdc5d005 100644 --- a/lib/src/install.rs +++ b/lib/src/install.rs @@ -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 /")?;