fix(bootstrap): set TERM=xterm-256color for better gum compatibility in VMs
- commit
- a998c3ed21025792c9f2a8d0444549d7d13aae0a
- author
- bnema · · 2025-10-19 09:47 UTC
- parent
- 504e4b4
- signature
- unsigned
2 files · +15 -10
M README.md +9 -10
| @@ -84,16 +84,17 @@ archup/ | |||
| 84 | 84 | ### Quick Install (from Arch ISO) | |
| 85 | 85 | ||
| 86 | 86 | ```bash | |
| 87 | - | # Download the installation script (curl is available by default on Arch ISO) | |
| 88 | - | # Note: Using 'dev' branch for testing - change to 'main' for stable release | |
| 89 | - | curl -L https://raw.githubusercontent.com/bnema/archup/dev/install.sh -o install.sh | |
| 90 | - | chmod +x install.sh | |
| 87 | + | # Install from dev branch (latest) | |
| 88 | + | curl -fsSL https://archup.bnema.dev/install/dev | bash | |
| 91 | 89 | ||
| 92 | - | # Run the installer (it will download all required files) | |
| 93 | - | sudo ./install.sh | |
| 90 | + | # OR install from main branch (stable - when available) | |
| 91 | + | curl -fsSL https://archup.bnema.dev/install | bash | |
| 92 | + | ||
| 93 | + | # OR direct from GitHub (fallback) | |
| 94 | + | curl -L https://raw.githubusercontent.com/bnema/archup/dev/install.sh | bash | |
| 94 | 95 | ``` | |
| 95 | 96 | ||
| 96 | - | **Note:** Phase 1 complete! The installer can now install a minimal bootable Arch Linux system. Ready for VM testing. | |
| 97 | + | **Note:** The installer automatically downloads all required files and can install a minimal bootable Arch Linux system. Ready for VM testing! | |
| 97 | 98 | ||
| 98 | 99 | --- | |
| 99 | 100 | ||
| @@ -119,9 +120,7 @@ To test the installer in a VM (QEMU/KVM recommended): | |||
| 119 | 120 | # Connect to internet | |
| 120 | 121 | ||
| 121 | 122 | # Download and run installer (automatically downloads all required files) | |
| 122 | - | curl -L https://raw.githubusercontent.com/bnema/archup/main/install.sh -o install.sh | |
| 123 | - | chmod +x install.sh | |
| 124 | - | sudo ./install.sh | |
| 123 | + | curl -fsSL https://archup.bnema.dev/install/dev | bash | |
| 125 | 124 | ``` | |
| 126 | 125 | ||
| 127 | 126 | **What the installer does:** | |
| @@ -84,16 +84,17 @@ archup/ | |||||
| 84 | ### Quick Install (from Arch ISO) | 84 | ### Quick Install (from Arch ISO) | ||
| 85 | 85 | ||||
| 86 | ```bash | 86 | ```bash | ||
| 87 | - | # Download the installation script (curl is available by default on Arch ISO) | 87 | + | # Install from dev branch (latest) |
| 88 | - | # Note: Using 'dev' branch for testing - change to 'main' for stable release | 88 | + | curl -fsSL https://archup.bnema.dev/install/dev | bash |
| 89 | - | curl -L https://raw.githubusercontent.com/bnema/archup/dev/install.sh -o install.sh | |||
| 90 | - | chmod +x install.sh | |||
| 91 | 89 | ||||
| 92 | - | # Run the installer (it will download all required files) | 90 | + | # OR install from main branch (stable - when available) |
| 93 | - | sudo ./install.sh | 91 | + | curl -fsSL https://archup.bnema.dev/install | bash |
| 92 | + | ||||
| 93 | + | # OR direct from GitHub (fallback) | |||
| 94 | + | curl -L https://raw.githubusercontent.com/bnema/archup/dev/install.sh | bash | |||
| 94 | ``` | 95 | ``` | ||
| 95 | 96 | ||||
| 96 | - | **Note:** Phase 1 complete! The installer can now install a minimal bootable Arch Linux system. Ready for VM testing. | 97 | + | **Note:** The installer automatically downloads all required files and can install a minimal bootable Arch Linux system. Ready for VM testing! |
| 97 | 98 | ||||
| 98 | --- | 99 | --- | ||
| 99 | 100 | ||||
| @@ -119,9 +120,7 @@ To test the installer in a VM (QEMU/KVM recommended): | |||||
| 119 | # Connect to internet | 120 | # Connect to internet | ||
| 120 | 121 | ||||
| 121 | # Download and run installer (automatically downloads all required files) | 122 | # Download and run installer (automatically downloads all required files) | ||
| 122 | - | curl -L https://raw.githubusercontent.com/bnema/archup/main/install.sh -o install.sh | 123 | + | curl -fsSL https://archup.bnema.dev/install/dev | bash |
| 123 | - | chmod +x install.sh | |||
| 124 | - | sudo ./install.sh | |||
| 125 | ``` | 124 | ``` | ||
| 126 | 125 | ||||
| 127 | **What the installer does:** | 126 | **What the installer does:** | ||
M install/bootstrap.sh +6 -0
| @@ -8,6 +8,12 @@ set -e | |||
| 8 | 8 | echo "=== ArchUp Bootstrap ===" | |
| 9 | 9 | echo "Installing essential dependencies..." | |
| 10 | 10 | ||
| 11 | + | # Fix TERM for better gum compatibility in VMs | |
| 12 | + | if [ "$TERM" = "linux" ] || [ -z "$TERM" ]; then | |
| 13 | + | export TERM=xterm-256color | |
| 14 | + | echo "Set TERM=xterm-256color for better TUI compatibility" | |
| 15 | + | fi | |
| 16 | + | ||
| 11 | 17 | # Sync package database (required on fresh ISO boot) | |
| 12 | 18 | echo "Syncing package database..." | |
| 13 | 19 | pacman -Sy --noconfirm | |
| @@ -8,6 +8,12 @@ set -e | |||||
| 8 | echo "=== ArchUp Bootstrap ===" | 8 | echo "=== ArchUp Bootstrap ===" | ||
| 9 | echo "Installing essential dependencies..." | 9 | echo "Installing essential dependencies..." | ||
| 10 | 10 | ||||
| 11 | + | # Fix TERM for better gum compatibility in VMs | |||
| 12 | + | if [ "$TERM" = "linux" ] || [ -z "$TERM" ]; then | |||
| 13 | + | export TERM=xterm-256color | |||
| 14 | + | echo "Set TERM=xterm-256color for better TUI compatibility" | |||
| 15 | + | fi | |||
| 16 | + | ||||
| 11 | # Sync package database (required on fresh ISO boot) | 17 | # Sync package database (required on fresh ISO boot) | ||
| 12 | echo "Syncing package database..." | 18 | echo "Syncing package database..." | ||
| 13 | pacman -Sy --noconfirm | 19 | pacman -Sy --noconfirm | ||