Skip to content

Commit

Permalink
Merge pull request #556 from cgwalters/s390x-noop
Browse files Browse the repository at this point in the history
No-op on s390x
  • Loading branch information
cgwalters committed Nov 2, 2023
2 parents a35cf04 + e81c38e commit 22c714c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/bootupd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub(crate) fn install(
all_components.values().collect()
};

if target_components.is_empty() {
if target_components.is_empty() && !auto_components {
anyhow::bail!("No components specified");
}

Expand Down Expand Up @@ -90,7 +90,13 @@ pub(crate) fn install(
let sysroot = &openat::Dir::open(dest_root)?;

if with_static_configs {
#[cfg(any(
target_arch = "x86_64",
target_arch = "aarch64",
target_arch = "powerpc64"
))]
crate::grubconfigs::install(sysroot, installed_efi)?;
// On other architectures, assume that there's nothing to do.
}

// Unmount the ESP, etc.
Expand Down

0 comments on commit 22c714c

Please sign in to comment.