From 585ec185f226cac6f37c2a4d53c713cc98c0e7b9 Mon Sep 17 00:00:00 2001 From: Tim Gover Date: Mon, 9 Dec 2024 10:57:11 +0000 Subject: [PATCH] rpi-eeprom-config: Increase default timeouts Increase the delays to compensate for an (unlikely) retry loop if flashrom reports an error. --- rpi-eeprom-config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpi-eeprom-config b/rpi-eeprom-config index 3acffb4..89d3cee 100755 --- a/rpi-eeprom-config +++ b/rpi-eeprom-config @@ -111,7 +111,7 @@ def exit_error(msg): sys.stderr.write("ERROR: %s\n" % msg) sys.exit(1) -def shell_cmd(args, timeout=5, echo=False): +def shell_cmd(args, timeout=10, echo=False): """ Executes a shell command waits for completion returning STDOUT. If an error occurs then exit and output the subprocess stdout, stderr messages @@ -180,7 +180,7 @@ def apply_update(config, eeprom=None, config_src=None): # If flashrom is used then the command will not return until the EEPROM # has been updated so use a larger timeout. - shell_cmd(args, timeout=60, echo=True) + shell_cmd(args, timeout=180, echo=True) def edit_config(eeprom=None): """