From 4caa0bbbc6837c0727fb5fc14f4fca5fec994542 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 7 Nov 2025 11:47:12 +0000 Subject: [PATCH] fix: Improve force removal of existing images in install.sh - Increase sleep time to 2 seconds - Add SIGKILL as last resort - Continue with warning if removal fails --- cfg/install.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/cfg/install.sh b/cfg/install.sh index e20af6f..54285c7 100644 --- a/cfg/install.sh +++ b/cfg/install.sh @@ -92,10 +92,15 @@ for img in $BACKUP workspace; do if machinectl list-images | grep -q "^$img"; then echo " Removing existing image: $img" machinectl poweroff $img 2>/dev/null || true - sleep 1 + sleep 2 machinectl terminate $img 2>/dev/null || true - sleep 1 - machinectl remove $img + sleep 2 + # Force kill if still running + if machinectl status $img &>/dev/null; then + machinectl kill $img --signal=SIGKILL 2>/dev/null || true + sleep 2 + fi + machinectl remove $img 2>/dev/null || echo " Warning: Could not remove $img (will skip)" fi done