Skip to content

feat: add Arch Linux easy install support#61

Open
mswell wants to merge 1 commit intoattacksurge:masterfrom
mswell:feat/arch-linux-easy-install
Open

feat: add Arch Linux easy install support#61
mswell wants to merge 1 commit intoattacksurge:masterfrom
mswell:feat/arch-linux-easy-install

Conversation

@mswell
Copy link
Copy Markdown

@mswell mswell commented Mar 26, 2026

Summary

  • Add detect_os() function to vars.sh that uses /etc/os-release with ID_LIKE fallback, supporting Arch derivatives (CachyOS, EndeavourOS, Garuda, ArcoLinux, etc.)
  • Fix OS detection across axiom-configure, axiom-account, and all 10 account helpers — replacing fragile lsb_release checks with the new detect_os() function
  • Fix zsh_shell() and omz_shell() in axiom-configure to use pacman on Arch instead of hardcoded apt
  • Add Arch branches for cloud provider CLIs: AWS (zip install), Azure (pip install), GCP (standalone archive)
  • Fix Packer install in axiom-account to use pacman on Arch
  • Update README: Arch Linux Easy Install NoYes

Test plan

  • Tested on CachyOS (ID=cachyos, ID_LIKE=arch) — detect_os correctly returns Arch
  • axiom-configure --run detects Arch, installs deps via pacman, completes shell setup
  • axiom-account Packer install uses pacman on Arch (with --overwrite for existing binaries)
  • Full easy install flow completes successfully on CachyOS (DigitalOcean provider)
  • Regression test on Ubuntu/Debian (no behavior change expected — lsb_release is still used as primary detection)

Add full Arch Linux (and derivatives) support to the easy install flow.
Previously, Arch-based distros were detected as "unknown-Linux" and fell
into Debian/apt code paths that failed.

Changes:
- Add detect_os() to vars.sh using /etc/os-release with ID_LIKE fallback
  for derivatives (CachyOS, EndeavourOS, Garuda, etc.)
- Fix OS detection in axiom-configure with /etc/os-release fallback
- Fix zsh_shell() and omz_shell() to use pacman on Arch
- Add Arch branches to aws.sh, azure.sh (pip), gcp.sh (standalone archive)
- Replace lsb_release detection with detect_os() in all account helpers
- Fix Packer install in axiom-account to use pacman on Arch
- Simplify IBM account helpers (curl installer is distro-agnostic)
- Update README: Arch Easy Install "No" -> "Yes"

Tested on CachyOS (ID=cachyos, ID_LIKE=arch).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant