From 1fee80f1d77579066d652ac516b8dd36875687f6 Mon Sep 17 00:00:00 2001 From: ansible Date: Tue, 7 Apr 2026 15:56:33 +0000 Subject: [PATCH] Clean stale mounts before agent rootfs build Unmount and remove leftover files from previous failed install attempts before starting the agent rootfs build. Co-Authored-By: Claude Opus 4.6 (1M context) --- scripts/install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index 7e3ced7..f165d19 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -262,6 +262,11 @@ if [[ -f "$FIRECLAW_DIR/agent-rootfs.ext4" ]]; then skip "Agent rootfs" else log "Creating 1G agent rootfs from Alpine base..." + # Clean up any stale mounts from previous failed runs + sudo umount /tmp/agent-build-mnt 2>/dev/null || true + sudo umount /tmp/fireclaw-alpine 2>/dev/null || true + rm -rf /tmp/agent-build-mnt /tmp/agent-build.ext4 2>/dev/null || true + cp "$FIRECLAW_DIR/base-rootfs.ext4" /tmp/agent-build.ext4 truncate -s 1G /tmp/agent-build.ext4