Fixed the fundamental issue: - root.x86_64/ = aios OS (entire filesystem) - root.x86_64/var/lib/machines/ = child containers directory Changes: - build.zsh: Use root.x86_64 directly as OS root - setup-user.sh: ROOTFS=root.x86_64 - setup-claude.sh: ROOTFS=root.x86_64 - user-continer.sh: ROOTFS=root.x86_64 - install.sh: mv root.x86_64 /var/lib/machines/aios Now matches github-actions structure correctly.
21 lines
522 B
Bash
21 lines
522 B
Bash
#!/bin/bash
|
|
# Create child containers inside aios for ai user
|
|
# Simply copy the aios itself as child containers
|
|
|
|
ROOTFS="root.x86_64"
|
|
|
|
echo "=== Creating child containers ==="
|
|
|
|
# Create directory for child containers
|
|
mkdir -p $ROOTFS/var/lib/machines
|
|
|
|
# Copy aios as workspace
|
|
echo "Creating workspace container..."
|
|
cp -a $ROOTFS $ROOTFS/var/lib/machines/workspace
|
|
|
|
# Copy aios as restore-img
|
|
echo "Creating restore-img container..."
|
|
cp -a $ROOTFS $ROOTFS/var/lib/machines/restore-img
|
|
|
|
echo "✓ Child containers created"
|