aboutsummaryrefslogtreecommitdiff
path: root/scripts/sanity-test.sh
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-23 20:55:07 -0400
committerCraig Jennings <c@cjennings.net>2026-06-23 20:55:07 -0400
commitedb5016809f3bc657283d8c2402970dbbab3c5cf (patch)
treef31ed6432b921f117a2abca1b9c12efe8f8d7b26 /scripts/sanity-test.sh
parentf0f56e1fe2e2bbb3a57bb61235e67c0bdc8402ae (diff)
downloadarchangel-edb5016809f3bc657283d8c2402970dbbab3c5cf.tar.gz
archangel-edb5016809f3bc657283d8c2402970dbbab3c5cf.zip
fix(installer): RAID validation, set -e fix, drop dead shadow branch
Two installer cleanups from the todo backlog. validate_config now rejects a RAID_LEVEL the selected disk count can't support, guarding the unattended path (the interactive path already constrains the choice). While adding it I found a latent bug: the error loop's ((errors++)) returned 0 on the first error and tripped set -e in the monolith's `[[ UNATTENDED == true ]] && validate_config` call, aborting after one warning instead of listing every problem. Switched to pre-increment so the count accumulates as designed. Added four bats cases, including one that runs validate_config under set -e outside bats' run shield. build.sh dropped the dead shadow-file rebuild else-branch. The profile is always copied fresh from releng (which ships /etc/shadow), so the branch never ran, and its hardcoded account list had drifted from what releng provides. Replaced with an assertion that fails the build loudly if the file is ever missing.
Diffstat (limited to 'scripts/sanity-test.sh')
0 files changed, 0 insertions, 0 deletions