From 6f01d70ab3b8e64db4a0e75281adf407b60c1e8b Mon Sep 17 00:00:00 2001 From: ErnestHysa Date: Sun, 31 May 2026 18:32:46 +0100 Subject: [PATCH] fix: add /usr/sbin and /sbin to PATH in update-script The update subprocess spawned by umbreld inherits a PATH that does not include /usr/sbin or /sbin, causing rugix-ctrl to fail with 'No such file or directory' when it tries to run sfdisk to read the partition table during OS updates. This results in the update hanging at 93% with the bundle fully written but the boot-slot switch never happening. This fix follows the suggested approach from issue #2153: adding the standard sbin directories to PATH at the top of the update-script, scoping the change to the update flow only. Fixes: getumbrel/umbrel#2153 --- scripts/update-script | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/update-script b/scripts/update-script index 9a51aff04..eeec35de3 100755 --- a/scripts/update-script +++ b/scripts/update-script @@ -5,6 +5,10 @@ set -euo pipefail # The update server references it in the form: # https://raw.githubusercontent.com/getumbrel/umbrel//scripts/update-script +# Fix PATH so that commands like sfdisk (used by rugix-ctrl) can be found +# sfdisk lives in /usr/sbin and /sbin which are not always in the inherited PATH +export PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH" + update_url="" download_prefix="https://download.umbrel.com/release/1.7.3"