aboutsummaryrefslogtreecommitdiff
path: root/installer/lib/config.sh
Commit message (Collapse)AuthorAgeFilesLines
* refactor: drop dead variables from lib/config.shCraig Jennings2026-05-141-3/+0
| | | | I dropped ENCRYPTION_ENABLED, SSH_ENABLED, and SSH_KEY — declarations with no readers anywhere in the project. The live names (NO_ENCRYPT, ENABLE_SSH) handle these settings instead. The example config files already reference those.
* refactor: consolidate installer defaults and FILESYSTEM validation into ↵Craig Jennings2026-04-271-4/+19
| | | | | | | | | | | | config.sh The installer had three sites touching FILESYSTEM: a top-level default in the monolith, a re-default block in gather_input, and a runtime validation block also in gather_input. The same scattering existed for LOCALE, KEYMAP, ENABLE_SSH, and NO_ENCRYPT. A future contributor changing one site wouldn't have known the other two existed. Move all five defaults into the lib/config.sh declarations so config.sh is the single source of truth. Add validate_filesystem() in lib/config.sh and call it from main() between check_config and gather_input, so a typo in a config file's FILESYSTEM= fails fast before any install action runs. The behavior change is stricter. An empty FILESYSTEM in a config file used to be silently defaulted to zfs, now it errors. Interactive mode is unaffected. select_filesystem still controls the value and already errored on cancellation. Bats: 140 → 142. Five tests added in test_config.bats for the defaults pinning and validate_filesystem coverage. Three removed from test_archangel.bats for behavior that moved out of gather_input. Lint clean.
* feat: default to no-color output, add --color flag to enableCraig Jennings2026-04-091-0/+5
| | | | Keeps logs and SSH output clean. Use archangel --color for colored output.
* refactor: rename custom/ to installer/ for clarityCraig Jennings2026-02-231-0/+131
The custom/ directory name was an archiso implementation detail. Renamed to installer/ which clearly communicates that this directory contains the installer scripts and utilities that ship on the ISO. Updated all references in build.sh, Makefile, test-install.sh, and README.