From 02692bd5e1db8d5dad20fd0310ec322de0467682 Mon Sep 17 00:00:00 2001 From: Kyle Finlay Date: Fri, 31 Jan 2020 00:27:57 +1100 Subject: [PATCH] Add support for Fedora Silverblue (#312) --- src/steps/os/linux.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/steps/os/linux.rs b/src/steps/os/linux.rs index 858d3d0e..b1ccc1fe 100644 --- a/src/steps/os/linux.rs +++ b/src/steps/os/linux.rs @@ -200,11 +200,11 @@ fn upgrade_redhat(sudo: &Option, run_type: RunType, yes: bool) -> Resul if let Some(sudo) = &sudo { let mut command = run_type.execute(&sudo); command - .arg( - Path::new("/usr/bin/dnf") + .arg(Path::new("/usr/bin/dnf").if_exists().unwrap_or_else(|| { + Path::new("/usr/bin/yum") .if_exists() - .unwrap_or_else(|| Path::new("/usr/bin/yum")), - ) + .unwrap_or_else(|| Path::new("/usr/bin/rpm-ostree")) + })) .arg("upgrade"); if yes { command.arg("-y");