diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-13 00:07:46 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-13 00:07:46 -0400 |
| commit | 9f6c75916cee8cb65b21b71c69f62d080818ad63 (patch) | |
| tree | 791bbc02072fabc18accd501f1740837b99770fc /installer/velox-zfs.conf.example | |
| parent | 88d2fafe410a82dfa3534d7c0466689997407a0c (diff) | |
| download | archangel-9f6c75916cee8cb65b21b71c69f62d080818ad63.tar.gz archangel-9f6c75916cee8cb65b21b71c69f62d080818ad63.zip | |
refactor: unify get_{luks,zfs}_passphrase and get_root_password
Extract the prompt/confirm/min-length loop into prompt_password() in
lib/common.sh using a nameref for the output variable, so UI output
stays on the terminal (no command-substitution capture) and the three
callers collapse from ~30 lines each to a single helper call.
- get_luks_passphrase() — min 8 chars
- get_zfs_passphrase() — min 8 chars
- get_root_password() — no min (was unchecked before; preserved)
5 bats tests added: match+min-ok path, length-retry loop,
mismatch-retry loop, min_len=0 disables check, empty passphrase
when min_len=0. make test: 58/58.
Diffstat (limited to 'installer/velox-zfs.conf.example')
0 files changed, 0 insertions, 0 deletions
