Uh oh!
There was an error while loading. Please reload this page.
feat: added input validation in installer - #26
Conversation
Signed-off-by: Ayush <bhandariayush935@gmail.com>
youngcoder45
left a comment
There was a problem hiding this comment.
tbh looks good to me just want a review from @sinisterMage
| log_warn "Invalid username '$USERNAME'. (Attempt $attempt/$max_attempts)" | ||
| echo -e " ${DIM}Usernames must start with a letter or underscore,${NC}" | ||
| echo -e " ${DIM}and contain only lowercase letters, digits, - or _.${NC}" | ||
| echo |
There was a problem hiding this comment.
Pull request overview
This PR adds additional input validation and safety checks to the interactive installer flow to reduce the risk of destructive actions (e.g., wiping the wrong disk) due to invalid user input.
Changes:
- Adds live-boot medium detection and excludes it from install targets (including
--diskpreselection). - Improves disk selection UX with detailed disk info and a confirmation prompt; adds retry limits for invalid selections.
- Adds retry-limited validation loops for hostname and username prompts.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
youngcoder45
commented
Jul 7, 2026
@sinisterMage Can u review this |
Summary
I had added input validation and safety checks in installation process which will prevent user to enter invalid input during installlation.
Changes
archiso/cvh/codeverse)Related Issue
Fix#16
Checklist