feat: Pre-create containers in build.zsh
Changed container creation from install-time to build-time: Before: - build.zsh: create only aios - install.sh: machinectl clone aios → aiosback, workspace After: - build.zsh: create aios + aiosback + workspace (cp -a) - install.sh: just extract and move to /var/lib/machines/ Benefits: - Simpler install.sh (no machinectl clone operations) - Faster installation (no clone overhead) - All containers included in tarball - Consistent initial state
This commit is contained in:
@@ -98,11 +98,17 @@ echo "=== Finalizing ==="
|
||||
# Copy aios-ctl.zsh for host machine control
|
||||
cp -rf ./cfg/aios-ctl.zsh root.x86_64/var/lib/machines/arch/opt/aios-ctl.zsh
|
||||
|
||||
# Create backup and workspace containers
|
||||
echo "Creating aiosback and workspace containers..."
|
||||
cp -a root.x86_64/var/lib/machines/arch root.x86_64/var/lib/machines/aiosback
|
||||
cp -a root.x86_64/var/lib/machines/arch root.x86_64/var/lib/machines/workspace
|
||||
|
||||
# Copy install script
|
||||
cp -rf ./cfg/install.sh ./install.sh
|
||||
chmod +x ./install.sh
|
||||
|
||||
# Create tarball
|
||||
# Create tarball with all containers
|
||||
echo "Creating tarball..."
|
||||
tar -zcvf aios-bootstrap.tar.gz root.x86_64/ install.sh
|
||||
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user