This commit is contained in:
2026-02-27 13:10:44 +09:00
parent 2f15b7fd00
commit 7bb8e0cd14
24 changed files with 0 additions and 74 deletions

23
old/cfg/user-continer.sh Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
# Create workspace container inside aios for ai user
# Backup aios before creating /var/lib/machines to avoid recursion
ROOTFS="root.x86_64"
echo "=== Creating workspace container ==="
# Backup current aios to temp location (before creating /var/lib/machines)
echo "Backing up aios..."
cp -a $ROOTFS /tmp/aios-backup-$$
# Create directory for child containers
mkdir -p $ROOTFS/var/lib/machines
# Copy backup as workspace
echo "Creating workspace container..."
cp -a /tmp/aios-backup-$$ $ROOTFS/var/lib/machines/workspace
# Cleanup temp backup
rm -rf /tmp/aios-backup-$$
echo "✓ Workspace container created"