Skip to content

Commit

Permalink
fix(bootc): exclusively run either rpm-ostree or bootc since they are…
Browse files Browse the repository at this point in the history
… incompatible

Because Bootc doesnt support Layering yet!
  • Loading branch information
tulilirockz committed Nov 17, 2024
1 parent 7932ca9 commit 14155d7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/steps/os/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,7 @@ 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();
}
};

if let Some(ostree) = which("rpm-ostree") {
} else 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 14155d7

Please sign in to comment.