refactor: derive macOS OSK inline
This commit is contained in:
parent
96b7e8f991
commit
c83dc45b11
4
quickemu
4
quickemu
|
@ -257,7 +257,6 @@ function vm_boot() {
|
||||||
local MAC_MISSING=""
|
local MAC_MISSING=""
|
||||||
local MAC_DISK_DEV="${MAC_DISK_DEV:-ide-hd,bus=ahci.2}"
|
local MAC_DISK_DEV="${MAC_DISK_DEV:-ide-hd,bus=ahci.2}"
|
||||||
local NET_DEVICE="${NET_DEVICE:-virtio-net}"
|
local NET_DEVICE="${NET_DEVICE:-virtio-net}"
|
||||||
local OSK=""
|
|
||||||
local SOUND=""
|
local SOUND=""
|
||||||
local SMM="${SMM:-off}"
|
local SMM="${SMM:-off}"
|
||||||
local TEMP_PORT=""
|
local TEMP_PORT=""
|
||||||
|
@ -583,9 +582,8 @@ function vm_boot() {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
OSK=$(echo "bheuneqjbexolgurfrjbeqfthneqrqcyrnfrqbagfgrny(p)NccyrPbzchgreVap" | tr 'A-Za-z' 'N-ZA-Mn-za-m')
|
|
||||||
# Disable S3 support in the VM to prevent macOS suspending during install
|
# Disable S3 support in the VM to prevent macOS suspending during install
|
||||||
GUEST_TWEAKS="-global kvm-pit.lost_tick_policy=discard -global ICH9-LPC.disable_s3=1 -device isa-applesmc,osk=${OSK}"
|
GUEST_TWEAKS="-global kvm-pit.lost_tick_policy=discard -global ICH9-LPC.disable_s3=1 -device isa-applesmc,osk=$(echo "bheuneqjbexolgurfrjbeqfthneqrqcyrnfrqbagfgrny(p)NccyrPbzchgreVap" | tr 'A-Za-z' 'N-ZA-Mn-za-m')"
|
||||||
|
|
||||||
# Disable High Precision Timer
|
# Disable High Precision Timer
|
||||||
if [ "${QEMU_VER_SHORT}" -ge 70 ]; then
|
if [ "${QEMU_VER_SHORT}" -ge 70 ]; then
|
||||||
|
|
Loading…
Reference in New Issue