mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Revert "macOS: swap disk controller from virtio-blk-pci to ahci"
This reverts commit 881adb289a
.
This commit is contained in:
parent
332f5b59f9
commit
9a7ee71804
1 changed files with 8 additions and 9 deletions
17
quickemu
17
quickemu
|
@ -542,13 +542,13 @@ function vm_boot() {
|
|||
case ${macos_release} in
|
||||
catalina)
|
||||
BALLOON=""
|
||||
MAC_DISK_DEV="ide-hd,bus=ahci.2"
|
||||
MAC_DISK_DEV="virtio-blk-pci"
|
||||
NET_DEVICE="vmxnet3"
|
||||
USB_HOST_PASSTHROUGH_CONTROLLER="usb-ehci"
|
||||
;;
|
||||
big-sur|monterey|ventura)
|
||||
BALLOON="-device virtio-balloon"
|
||||
MAC_DISK_DEV="ide-hd,bus=ahci.2"
|
||||
MAC_DISK_DEV="virtio-blk-pci"
|
||||
NET_DEVICE="virtio-net"
|
||||
USB_HOST_PASSTHROUGH_CONTROLLER="nec-usb-xhci"
|
||||
GUEST_TWEAKS="${GUEST_TWEAKS} -global nec-usb-xhci.msi=off"
|
||||
|
@ -1071,19 +1071,18 @@ function vm_boot() {
|
|||
if [ "${guest_os}" == "macos" ]; then
|
||||
# shellcheck disable=SC2054
|
||||
args+=(-device ahci,id=ahci
|
||||
-device ide-hd,bus=ahci.0,drive=BootLoader,bootindex=0,rotation_rate=1
|
||||
-drive id=BootLoader,if=none,format=qcow2,discard=unmap,file="${MAC_BOOTLOADER}")
|
||||
-device ide-hd,bus=ahci.0,drive=BootLoader,bootindex=0
|
||||
-drive id=BootLoader,if=none,format=qcow2,file="${MAC_BOOTLOADER}")
|
||||
|
||||
if [ -n "${img}" ]; then
|
||||
# shellcheck disable=SC2054
|
||||
args+=(-device ide-hd,bus=ahci.1,drive=RecoveryImage,rotation_rate=1
|
||||
-drive id=RecoveryImage,if=none,format=raw,discard=unmap,file="${img}")
|
||||
args+=(-device ide-hd,bus=ahci.1,drive=RecoveryImage
|
||||
-drive id=RecoveryImage,if=none,format=raw,file="${img}")
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2054,SC2206
|
||||
args+=(-device ${MAC_DISK_DEV},drive=SystemDisk,rotation_rate=1
|
||||
-drive id=SystemDisk,if=none,format=qcow2,discard=unmap,file="${disk_img}" ${STATUS_QUO})
|
||||
|
||||
args+=(-device ${MAC_DISK_DEV},drive=SystemDisk
|
||||
-drive id=SystemDisk,if=none,format=qcow2,file="${disk_img}" ${STATUS_QUO})
|
||||
elif [ "${guest_os}" == "kolibrios" ]; then
|
||||
# shellcheck disable=SC2054,SC2206
|
||||
args+=(-device ahci,id=ahci
|
||||
|
|
Loading…
Reference in a new issue