feat(ux): add pacman config and fix extra.packages download
- commit
- 41ea7973bc63d7beb9a91605e15803eb6e961132
- author
- bnema · · 2025-10-21 17:41 UTC
- committer
- bnema · · 2025-10-21 16:38 UTC
- parent
- e3c2051
- signature
- unsigned
4 files · +26 -3
M CHANGELOG.md +4 -0
| @@ -7,10 +7,14 @@ All notable changes to this project will be documented in this file. | |||
| 7 | 7 | ### Added | |
| 8 | 8 | - **UFW firewall**: Added ufw with default deny incoming policy for basic network protection | |
| 9 | 9 | - **First-boot branding**: Display ArchUp logo and completion message during first-boot setup | |
| 10 | + | - **Pacman configuration**: Enable color output, parallel downloads, and ILoveCandy progress bar | |
| 10 | 11 | - **zram swap**: Configured zram-generator for compressed in-memory swap with optimized sysctl parameters | |
| 11 | 12 | - **Broadcom WiFi**: Added broadcom-wl driver to base packages for Broadcom wireless support | |
| 12 | 13 | - **Multilib support**: Enabled multilib repository on ISO and installed system with reusable helper | |
| 13 | 14 | ||
| 15 | + | ### Fixed | |
| 16 | + | - **Download script**: Added missing extra.packages to download list | |
| 17 | + | ||
| 14 | 18 | ### Changed | |
| 15 | 19 | - **Disk selection**: Enhanced disk listing with model, serial, and vendor information using JSON output | |
| 16 | 20 | - **Install URL**: Updated to archup.run domain with /install and /i shortcuts | |
| @@ -7,10 +7,14 @@ All notable changes to this project will be documented in this file. | |||||
| 7 | ### Added | 7 | ### Added | ||
| 8 | - **UFW firewall**: Added ufw with default deny incoming policy for basic network protection | 8 | - **UFW firewall**: Added ufw with default deny incoming policy for basic network protection | ||
| 9 | - **First-boot branding**: Display ArchUp logo and completion message during first-boot setup | 9 | - **First-boot branding**: Display ArchUp logo and completion message during first-boot setup | ||
| 10 | + | - **Pacman configuration**: Enable color output, parallel downloads, and ILoveCandy progress bar | |||
| 10 | - **zram swap**: Configured zram-generator for compressed in-memory swap with optimized sysctl parameters | 11 | - **zram swap**: Configured zram-generator for compressed in-memory swap with optimized sysctl parameters | ||
| 11 | - **Broadcom WiFi**: Added broadcom-wl driver to base packages for Broadcom wireless support | 12 | - **Broadcom WiFi**: Added broadcom-wl driver to base packages for Broadcom wireless support | ||
| 12 | - **Multilib support**: Enabled multilib repository on ISO and installed system with reusable helper | 13 | - **Multilib support**: Enabled multilib repository on ISO and installed system with reusable helper | ||
| 13 | 14 | ||||
| 15 | + | ### Fixed | |||
| 16 | + | - **Download script**: Added missing extra.packages to download list | |||
| 17 | + | ||||
| 14 | ### Changed | 18 | ### Changed | ||
| 15 | - **Disk selection**: Enhanced disk listing with model, serial, and vendor information using JSON output | 19 | - **Disk selection**: Enhanced disk listing with model, serial, and vendor information using JSON output | ||
| 16 | - **Install URL**: Updated to archup.run domain with /install and /i shortcuts | 20 | - **Install URL**: Updated to archup.run domain with /install and /i shortcuts | ||
M install/helpers/download.sh +4 -3
| @@ -58,15 +58,16 @@ download_archup_files() { | |||
| 58 | 58 | ||
| 59 | 59 | # Post-install | |
| 60 | 60 | download_section "Downloading post-install scripts..." "post-install" \ | |
| 61 | - | all.sh boot-logo.sh plymouth.sh snapper.sh ufw.sh post-boot-setup.sh hooks.sh shell-config.sh verify.sh unmount.sh | |
| 61 | + | all.sh boot-logo.sh plymouth.sh snapper.sh ufw.sh pacman.sh post-boot-setup.sh hooks.sh shell-config.sh verify.sh unmount.sh | |
| 62 | 62 | ||
| 63 | 63 | # Post-boot | |
| 64 | 64 | download_section "Downloading post-boot scripts..." "post-boot" \ | |
| 65 | 65 | all.sh snapper.sh ssh-keygen.sh archup-cli.sh archup-first-boot.service | |
| 66 | 66 | ||
| 67 | - | # Base packages | |
| 67 | + | # Package lists | |
| 68 | 68 | curl -sL "$GITHUB_RAW/install/base.packages" -o "$ARCHUP_INSTALL/base.packages" 2>/dev/null | |
| 69 | - | gum style --foreground 2 "[OK] Package list downloaded" | |
| 69 | + | curl -sL "$GITHUB_RAW/install/extra.packages" -o "$ARCHUP_INSTALL/extra.packages" 2>/dev/null | |
| 70 | + | gum style --foreground 2 "[OK] Package lists downloaded" | |
| 70 | 71 | ||
| 71 | 72 | echo "" | |
| 72 | 73 | gum style --foreground 2 --bold "[OK] All files downloaded successfully" | |
| @@ -58,15 +58,16 @@ download_archup_files() { | |||||
| 58 | 58 | ||||
| 59 | # Post-install | 59 | # Post-install | ||
| 60 | download_section "Downloading post-install scripts..." "post-install" \ | 60 | download_section "Downloading post-install scripts..." "post-install" \ | ||
| 61 | - | all.sh boot-logo.sh plymouth.sh snapper.sh ufw.sh post-boot-setup.sh hooks.sh shell-config.sh verify.sh unmount.sh | 61 | + | all.sh boot-logo.sh plymouth.sh snapper.sh ufw.sh pacman.sh post-boot-setup.sh hooks.sh shell-config.sh verify.sh unmount.sh |
| 62 | 62 | ||||
| 63 | # Post-boot | 63 | # Post-boot | ||
| 64 | download_section "Downloading post-boot scripts..." "post-boot" \ | 64 | download_section "Downloading post-boot scripts..." "post-boot" \ | ||
| 65 | all.sh snapper.sh ssh-keygen.sh archup-cli.sh archup-first-boot.service | 65 | all.sh snapper.sh ssh-keygen.sh archup-cli.sh archup-first-boot.service | ||
| 66 | 66 | ||||
| 67 | - | # Base packages | 67 | + | # Package lists |
| 68 | curl -sL "$GITHUB_RAW/install/base.packages" -o "$ARCHUP_INSTALL/base.packages" 2>/dev/null | 68 | curl -sL "$GITHUB_RAW/install/base.packages" -o "$ARCHUP_INSTALL/base.packages" 2>/dev/null | ||
| 69 | - | gum style --foreground 2 "[OK] Package list downloaded" | 69 | + | curl -sL "$GITHUB_RAW/install/extra.packages" -o "$ARCHUP_INSTALL/extra.packages" 2>/dev/null |
| 70 | + | gum style --foreground 2 "[OK] Package lists downloaded" | |||
| 70 | 71 | ||||
| 71 | echo "" | 72 | echo "" | ||
| 72 | gum style --foreground 2 --bold "[OK] All files downloaded successfully" | 73 | gum style --foreground 2 --bold "[OK] All files downloaded successfully" | ||
M install/post-install/all.sh +1 -0
| @@ -5,6 +5,7 @@ source "$ARCHUP_INSTALL/post-install/boot-logo.sh" | |||
| 5 | 5 | source "$ARCHUP_INSTALL/post-install/plymouth.sh" | |
| 6 | 6 | source "$ARCHUP_INSTALL/post-install/snapper.sh" | |
| 7 | 7 | source "$ARCHUP_INSTALL/post-install/ufw.sh" | |
| 8 | + | source "$ARCHUP_INSTALL/post-install/pacman.sh" | |
| 8 | 9 | source "$ARCHUP_INSTALL/post-install/post-boot-setup.sh" | |
| 9 | 10 | source "$ARCHUP_INSTALL/post-install/hooks.sh" | |
| 10 | 11 | source "$ARCHUP_INSTALL/post-install/shell-config.sh" | |
| @@ -5,6 +5,7 @@ source "$ARCHUP_INSTALL/post-install/boot-logo.sh" | |||||
| 5 | source "$ARCHUP_INSTALL/post-install/plymouth.sh" | 5 | source "$ARCHUP_INSTALL/post-install/plymouth.sh" | ||
| 6 | source "$ARCHUP_INSTALL/post-install/snapper.sh" | 6 | source "$ARCHUP_INSTALL/post-install/snapper.sh" | ||
| 7 | source "$ARCHUP_INSTALL/post-install/ufw.sh" | 7 | source "$ARCHUP_INSTALL/post-install/ufw.sh" | ||
| 8 | + | source "$ARCHUP_INSTALL/post-install/pacman.sh" | |||
| 8 | source "$ARCHUP_INSTALL/post-install/post-boot-setup.sh" | 9 | source "$ARCHUP_INSTALL/post-install/post-boot-setup.sh" | ||
| 9 | source "$ARCHUP_INSTALL/post-install/hooks.sh" | 10 | source "$ARCHUP_INSTALL/post-install/hooks.sh" | ||
| 10 | source "$ARCHUP_INSTALL/post-install/shell-config.sh" | 11 | source "$ARCHUP_INSTALL/post-install/shell-config.sh" | ||
A install/post-install/pacman.sh +17 -0
| @@ -0,0 +1,17 @@ | |||
| 1 | + | #!/bin/bash | |
| 2 | + | # Configure pacman for better UX | |
| 3 | + | ||
| 4 | + | gum style --foreground 6 --padding "1 0 0 $PADDING_LEFT" "Configuring pacman..." | |
| 5 | + | ||
| 6 | + | # Enable Color output | |
| 7 | + | sed -i 's/^#Color$/Color/' /mnt/etc/pacman.conf | |
| 8 | + | ||
| 9 | + | # Enable ParallelDownloads | |
| 10 | + | sed -i 's/^#ParallelDownloads = 5$/ParallelDownloads = 5/' /mnt/etc/pacman.conf | |
| 11 | + | ||
| 12 | + | # Enable ILoveCandy (Pac-Man progress bar) | |
| 13 | + | sed -i '/^Color$/a ILoveCandy' /mnt/etc/pacman.conf | |
| 14 | + | ||
| 15 | + | gum style --foreground 2 --padding "0 0 1 $PADDING_LEFT" "[OK] Pacman configured (color, parallel downloads, candy)" | |
| 16 | + | ||
| 17 | + | echo "Pacman configured: Color, ParallelDownloads=5, ILoveCandy" >> "$ARCHUP_INSTALL_LOG_FILE" | |
| @@ -0,0 +1,17 @@ | |||||
| 1 | + | #!/bin/bash | |||
| 2 | + | # Configure pacman for better UX | |||
| 3 | + | ||||
| 4 | + | gum style --foreground 6 --padding "1 0 0 $PADDING_LEFT" "Configuring pacman..." | |||
| 5 | + | ||||
| 6 | + | # Enable Color output | |||
| 7 | + | sed -i 's/^#Color$/Color/' /mnt/etc/pacman.conf | |||
| 8 | + | ||||
| 9 | + | # Enable ParallelDownloads | |||
| 10 | + | sed -i 's/^#ParallelDownloads = 5$/ParallelDownloads = 5/' /mnt/etc/pacman.conf | |||
| 11 | + | ||||
| 12 | + | # Enable ILoveCandy (Pac-Man progress bar) | |||
| 13 | + | sed -i '/^Color$/a ILoveCandy' /mnt/etc/pacman.conf | |||
| 14 | + | ||||
| 15 | + | gum style --foreground 2 --padding "0 0 1 $PADDING_LEFT" "[OK] Pacman configured (color, parallel downloads, candy)" | |||
| 16 | + | ||||
| 17 | + | echo "Pacman configured: Color, ParallelDownloads=5, ILoveCandy" >> "$ARCHUP_INSTALL_LOG_FILE" | |||