Skip to content

Commit a9ffb59

Browse files
committed
fix(quickemu): fix unattended.iso mount for windows-server guest
1 parent b541fe1 commit a9ffb59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickemu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1960,7 +1960,7 @@ function vm_boot() {
19601960
args+=(-boot order=d
19611961
-drive if=ide,index=2,media=cdrom,file="${iso}")
19621962
iso=""
1963-
elif [ -n "${iso}" ] && [ "${guest_os}" == "windows" ] && [ -e "${VMDIR}/unattended.iso" ]; then
1963+
elif [ -n "${iso}" ] && { [ "${guest_os}" == "windows" ] || [ "${guest_os}" == "windows-server" ]; } && [ -e "${VMDIR}/unattended.iso" ]; then
19641964
# Attach the unattended configuration to Windows guests when booting from ISO
19651965
# shellcheck disable=SC2054
19661966
args+=(-drive media=cdrom,index=2,file="${VMDIR}/unattended.iso")

0 commit comments

Comments
 (0)