From 78f4793d4e547d486b33cbe7565af20297010a77 Mon Sep 17 00:00:00 2001 From: agw Date: Wed, 30 Sep 2026 21:15:00 +0200 Subject: [PATCH] Empty the work directory instead of removing it It is a bind mount since the job container gained the host volume, and removing a mount point fails with "Device or resource busy". Claude-Session: https://claude.ai/code/session_01GGe7kUhooMFuzY6GaDb2w9 --- .gitea/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 5162c99..b1a0fba 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -78,7 +78,8 @@ jobs: - name: Prepare work directory run: | - sudo rm -rf "${WORK_DIR}" + # WORK_DIR is a bind mount now, so empty it rather than removing it. + sudo find "${WORK_DIR}" -mindepth 1 -delete sudo mkdir -p "${WORK_DIR}/out" sudo cp -a build packaging scripts "${WORK_DIR}/" df -h /