#!/bin/bash # Initialize child containers for ai user # This script runs once on first login echo "=== Initializing workspace containers ===" echo "This may take a few minutes..." # Create workspace directory mkdir -p /tmp/workspace-init # Create base workspace echo "Creating workspace container..." sudo pacstrap -c /tmp/workspace-init base # Configure workspace sudo arch-chroot /tmp/workspace-init /bin/sh -c 'pacman -Syu --noconfirm vim git zsh openssh nodejs npm sqlite' # Add securetty for pts login sudo bash -c 'cat >> /tmp/workspace-init/etc/securetty <