Remove rpi-update (fix #302)

According to the official RPI documentation rpi-update isn't a general
purpose tool.

https://raspberrypi.org/documentation/linux/kernel/updating.md
This commit is contained in:
Roey Darwish Dror
2020-01-28 16:11:25 +02:00
parent 7aff66bc53
commit d2f038f6a6
2 changed files with 0 additions and 15 deletions

View File

@@ -570,12 +570,6 @@ fn run() -> Result<()> {
|| linux::run_fwupdmgr(run_type), || linux::run_fwupdmgr(run_type),
config.no_retry(), config.no_retry(),
)?; )?;
execute(
&mut report,
"rpi-update",
|| linux::run_rpi_update(sudo.as_ref(), run_type),
config.no_retry(),
)?;
} }
if config.should_run(Step::Restarts) { if config.should_run(Step::Restarts) {

View File

@@ -441,15 +441,6 @@ pub fn run_snap(sudo: Option<&PathBuf>, run_type: RunType) -> Result<()> {
run_type.execute(sudo).arg(snap).arg("refresh").check_run() run_type.execute(sudo).arg(snap).arg("refresh").check_run()
} }
pub fn run_rpi_update(sudo: Option<&PathBuf>, run_type: RunType) -> Result<()> {
let sudo = require_option(sudo)?;
let rpi_update = require("rpi-update")?;
print_separator("rpi-update");
run_type.execute(sudo).arg(rpi_update).check_run()
}
pub fn run_pihole_update(sudo: Option<&PathBuf>, run_type: RunType) -> Result<()> { pub fn run_pihole_update(sudo: Option<&PathBuf>, run_type: RunType) -> Result<()> {
let sudo = require_option(sudo)?; let sudo = require_option(sudo)?;
let pihole = require("pihole")?; let pihole = require("pihole")?;