From a0963fe3fc683d03b21078cbf3b13b2f9e127d6b Mon Sep 17 00:00:00 2001 From: befanyt <172807209+befanyt@users.noreply.github.com> Date: Tue, 10 Dec 2024 06:00:37 +0100 Subject: [PATCH] fix: dont ignore rpm-ostree when bootc is found (#999) --- src/steps/os/linux.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/steps/os/linux.rs b/src/steps/os/linux.rs index b2b502bf..f36f5c61 100644 --- a/src/steps/os/linux.rs +++ b/src/steps/os/linux.rs @@ -230,7 +230,9 @@ fn upgrade_redhat(ctx: &ExecutionContext) -> Result<()> { let sudo = require_option(ctx.sudo().as_ref(), get_require_sudo_string())?; return ctx.run_type().execute(sudo).arg(&bootc).arg("upgrade").status_checked(); } - } else if let Some(ostree) = which("rpm-ostree") { + } + + if let Some(ostree) = which("rpm-ostree") { if ctx.config().rpm_ostree() { let mut command = ctx.run_type().execute(ostree); command.arg("upgrade");