alpine-vm: ask for the Cloud-Init credentials

The default path set USE_CLOUD_INIT itself, so the username and
password dialogs were skipped; only the advanced path asked. The cloud
image sets no password, so the question is which credentials, not
whether. Same fix as almalinux-vm and fedora-vm.
This commit is contained in:
MickLesk
2026-09-18 12:39:20 +02:00
parent 8d7a47d393
commit e85e18df28

View File

@@ -34,6 +34,10 @@ pushd "$TEMP_DIR" >/dev/null
vm_preflight
# The cloud image sets no password, so the only question is which credentials.
CLOUDINIT_REQUIRED=1
vm_prompt_cloud_init "alpine"
function default_settings() {
VMID=$(get_valid_nextid)
vm_apply_machine_type "q35"
@@ -49,7 +53,7 @@ function default_settings() {
MTU=""
START_VM="yes"
METHOD="default"
USE_CLOUD_INIT="yes"
echo -e "${CLOUD}${BOLD}${DGN}Cloud-Init: ${BGN}${USE_CLOUD_INIT}${CL}"
vm_echo_default_settings
}
@@ -67,7 +71,6 @@ function advanced_settings() {
vm_prompt_mac "$GEN_MAC"
vm_prompt_vlan
vm_prompt_mtu
vm_prompt_cloud_init "alpine"
vm_prompt_verbose "no"
vm_prompt_start_vm "yes"