浏览代码

scripts: qemustart: Fix x86/legacy bootup

The ide-drive option was renamed to ide-hd in qemu 6.0.
With this change qemu is starting again on Debian 12.

Signed-off-by: Hauke Mehrtens <[email protected]>
Hauke Mehrtens 2 年之前
父节点
当前提交
497012ab4e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      scripts/qemustart

+ 2 - 2
scripts/qemustart

@@ -309,12 +309,12 @@ start_qemu_x86() {
 			# To use AHCI interface
 			# To use AHCI interface
 			#
 			#
 			#	-device ich9-ahci,id=ahci \
 			#	-device ich9-ahci,id=ahci \
-			#	-device ide-drive,drive=drv0,bus=ahci.0 \
+			#	-device ide-hd,drive=drv0,bus=ahci.0 \
 			#	-drive "file=$rootfs,format=raw,id=drv0,if=none" \
 			#	-drive "file=$rootfs,format=raw,id=drv0,if=none" \
 			#
 			#
 			# [1] https://dev.openwrt.org/ticket/17947
 			# [1] https://dev.openwrt.org/ticket/17947
 			"$qemu_exe" -machine "$mach" -nographic \
 			"$qemu_exe" -machine "$mach" -nographic \
-				-device ide-drive,drive=drv0 \
+				-device ide-hd,drive=drv0 \
 				-drive "file=$rootfs,format=raw,id=drv0,if=none" \
 				-drive "file=$rootfs,format=raw,id=drv0,if=none" \
 				"${o_qemu_extra[@]}"
 				"${o_qemu_extra[@]}"
 			;;
 			;;