Merge pull request #2 from syui/claude/aios-initial-direction-011CUrcij89bjpsbc7k8wQeo

Claude/aios initial direction 011 c urcij89bjpsbc7k8w qeo
This commit is contained in:
syui
2025-11-07 20:45:46 +09:00
committed by GitHub

View File

@@ -86,12 +86,25 @@ mkdir -p /root/.config/syui/ai
echo "4. Enabling systemd-machined..." echo "4. Enabling systemd-machined..."
systemctl enable --now systemd-machined systemctl enable --now systemd-machined
# Remove existing images if they exist
echo "5. Checking for existing images..."
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
machinectl terminate $img 2>/dev/null || true
sleep 1
machinectl remove $img
fi
done
# Create initial backup # Create initial backup
echo "5. Creating initial backup image..." echo "6. Creating initial backup image..."
machinectl clone $NAME $BACKUP machinectl clone $NAME $BACKUP
# Create workspace container for AI operations # Create workspace container for AI operations
echo "6. Creating workspace container..." echo "7. Creating workspace container..."
machinectl clone $NAME workspace machinectl clone $NAME workspace
echo "" echo ""