From d15bc32614fefc35941ff584cc2047d3ca67d2c2 Mon Sep 17 00:00:00 2001 From: Funky185540 Date: Tue, 1 Feb 2022 11:46:27 +0100 Subject: [PATCH] linux: Ignore "--yes" for rpm-ostree upgrade (#849) Previously when performing the "system" upgrade step, rpm-ostree would be passed a "--yes" argument when it was configured in topgrade. However, this is not an option available for rpm-ostree, so it would cause an error and abort execution of the updates. --- src/steps/os/linux.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/steps/os/linux.rs b/src/steps/os/linux.rs index 774bf69d..e2f930a1 100644 --- a/src/steps/os/linux.rs +++ b/src/steps/os/linux.rs @@ -164,10 +164,6 @@ fn upgrade_redhat(ctx: &ExecutionContext) -> Result<()> { if ctx.config().rpm_ostree() { let mut command = ctx.run_type().execute(ostree); command.arg("upgrade"); - if ctx.config().yes(Step::System) { - command.arg("-y"); - } - return command.check_run(); } };