fix(quickemu): fix unattended.iso mount for windows-server guest

This commit is contained in:
Cheng Shao 2026-04-12 15:46:06 +02:00
parent b541fe1c58
commit 2e2429ee75
1 changed files with 1 additions and 1 deletions

View File

@ -1960,7 +1960,7 @@ function vm_boot() {
args+=(-boot order=d
-drive if=ide,index=2,media=cdrom,file="${iso}")
iso=""
elif [ -n "${iso}" ] && [ "${guest_os}" == "windows" ] && [ -e "${VMDIR}/unattended.iso" ]; then
elif [ -n "${iso}" ] && [[ "${guest_os}" == "windows"* ]] && [ -e "${VMDIR}/unattended.iso" ]; then
# Attach the unattended configuration to Windows guests when booting from ISO
# shellcheck disable=SC2054
args+=(-drive media=cdrom,index=2,file="${VMDIR}/unattended.iso")