fix(admin): stop dry runs before resolving the target volume

This commit is contained in:
2026-10-30 11:13:58 -03:00
parent 405fc18fc0
commit aba073e8b5
4 changed files with 13 additions and 2 deletions
+4
View File
@@ -205,6 +205,10 @@ cmd_admin() {
if ! is_recovery; then
error_exit "Admin creation must run from Recovery mode."
fi
if [ "$DRY_RUN" = true ]; then
admin_only_mode "the selected Data volume"
return
fi
header "Create Local Admin User"
local data_mount
data_mount=$(resolve_data_volume)