fix(admin): reject account creation outside Recovery

This commit is contained in:
2026-10-30 03:53:32 -03:00
parent 34a07ff172
commit 0f5ce61283
3 changed files with 41 additions and 0 deletions
+3
View File
@@ -2856,6 +2856,9 @@ cmd_suppress() {
}
cmd_admin() {
if ! is_recovery; then
error_exit "Admin creation must run from Recovery mode."
fi
header "Create Local Admin User"
local data_mount
data_mount=$(resolve_data_volume)