refactor: Create child containers during build as root, not at ai user login
- Renamed init-containers.sh to user-continer.sh - Moved container creation from ai user first login to build.zsh - Removed initialization check from ai user .zshrc - Child containers (workspace, restore-img) now pre-created by root - ai user simply uses pre-existing containers
This commit is contained in:
@@ -101,15 +101,14 @@ echo "=== Finalizing ==="
|
||||
# Copy aios-ctl.zsh for host machine control
|
||||
cp -rf ./cfg/aios-ctl.zsh root.x86_64/var/lib/machines/aios/opt/aios-ctl.zsh
|
||||
|
||||
# Prepare directory for child containers (ai user will create them as needed)
|
||||
echo "Preparing directory for child containers..."
|
||||
mkdir -p root.x86_64/var/lib/machines/aios/var/lib/machines
|
||||
# Create child containers (workspace, restore-img)
|
||||
bash ./cfg/user-continer.sh
|
||||
|
||||
# Copy install script
|
||||
cp -rf ./cfg/install.sh ./install.sh
|
||||
chmod +x ./install.sh
|
||||
|
||||
# Create tarball with aios (ready for child containers)
|
||||
# Create tarball with aios (includes child containers)
|
||||
echo "Creating tarball..."
|
||||
tar -zcvf aios-bootstrap.tar.gz root.x86_64/ install.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user