Skip to content

Commit

Permalink
fix: dont ignore rpm-ostree when bootc is found (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
befanyt authored Dec 10, 2024
1 parent 4df30c2 commit a0963fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/steps/os/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit a0963fe

Please sign in to comment.