From dc740a159b9b299b85885bc8ab65e97cc4d356a3 Mon Sep 17 00:00:00 2001 From: Christina Ying Wang Date: Fri, 29 Nov 2024 15:05:06 -0500 Subject: [PATCH] Specify `/tmp/balena|resin` directories as necessary See: https://forums.balena.io/t/rm-cant-remove-tmp-balena-resource-busy/367888/5 Change-type: patch Signed-off-by: Christina Ying Wang --- docs/update-locking.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/update-locking.md b/docs/update-locking.md index 2fe34165..11a1cf06 100644 --- a/docs/update-locking.md +++ b/docs/update-locking.md @@ -17,6 +17,8 @@ On devices running Supervisor v13.1.0 or newer, the Supervisor creates lockfiles ### Location of the lockfile +__Note:__ Trying to remove `/tmp/balena` or legacy `/tmp/resin` directories will result in a `resource busy` error. + On devices running Supervisor v7.22.0 and higher, the lockfile is located at `/tmp/balena/updates.lock`. This lock is cleared automatically when the device reboots, so the user app must take it every time it starts up. On older devices (with v4.0.0 <= Supervisor version < v7.22.0), the lock is located at `/tmp/resin/resin-updates.lock`. The latest Supervisor versions still take the lock at this legacy path for backwards compatibility.