Correct syntax for deprecated shorthand code

This commit is contained in:
Martin Wimpress 2021-09-06 22:25:54 +01:00
parent 943612589b
commit afaad48fbf
No known key found for this signature in database
GPG key ID: 61DF940515E06DA3

View file

@ -412,7 +412,7 @@ function vm_boot() {
-enable-kvm -machine q35 ${GUEST_TWEAKS} \ -enable-kvm -machine q35 ${GUEST_TWEAKS} \
${CPU} ${SMP} \ ${CPU} ${SMP} \
-m ${RAM_VM} -device virtio-balloon \ -m ${RAM_VM} -device virtio-balloon \
-drive if=pflash,format=raw,readonly,file="${EFI_CODE}" \ -drive if=pflash,format=raw,readonly=on,file="${EFI_CODE}" \
-drive if=pflash,format=raw,file="${EFI_VARS}" \ -drive if=pflash,format=raw,file="${EFI_VARS}" \
-drive id=ESP,cache=directsync,aio=native,if=none,format=qcow2,file="${VMDIR}/ESP.qcow2" \ -drive id=ESP,cache=directsync,aio=native,if=none,format=qcow2,file="${VMDIR}/ESP.qcow2" \
-device virtio-blk-pci,drive=ESP,scsi=off \ -device virtio-blk-pci,drive=ESP,scsi=off \
@ -432,11 +432,11 @@ function vm_boot() {
-enable-kvm -machine q35 ${GUEST_TWEAKS} \ -enable-kvm -machine q35 ${GUEST_TWEAKS} \
${CPU} ${SMP} \ ${CPU} ${SMP} \
-m ${RAM_VM} -device virtio-balloon \ -m ${RAM_VM} -device virtio-balloon \
-drive if=pflash,format=raw,readonly,file="${EFI_CODE}" \ -drive if=pflash,format=raw,readonly=on,file="${EFI_CODE}" \
-drive if=pflash,format=raw,file="${EFI_VARS}" \ -drive if=pflash,format=raw,file="${EFI_VARS}" \
-drive id=ESP,cache=directsync,aio=native,if=none,format=qcow2,file="${VMDIR}/ESP.qcow2" \ -drive id=ESP,cache=directsync,aio=native,if=none,format=qcow2,file="${VMDIR}/ESP.qcow2" \
-device virtio-blk-pci,drive=ESP,scsi=off \ -device virtio-blk-pci,drive=ESP,scsi=off \
-drive id=InstallMedia,cache=directsync,aio=native,if=none,format=raw,readonly,file="${img}" \ -drive id=InstallMedia,cache=directsync,aio=native,if=none,format=raw,readonly=on,file="${img}" \
-device virtio-blk-pci,drive=InstallMedia,scsi=off \ -device virtio-blk-pci,drive=InstallMedia,scsi=off \
-drive id=SystemDisk,cache=directsync,aio=native,if=none,format=qcow2,file="${disk_img}" ${STATUS_QUO} \ -drive id=SystemDisk,cache=directsync,aio=native,if=none,format=qcow2,file="${disk_img}" ${STATUS_QUO} \
-device virtio-blk-pci,drive=SystemDisk,scsi=off \ -device virtio-blk-pci,drive=SystemDisk,scsi=off \
@ -455,7 +455,7 @@ function vm_boot() {
-enable-kvm -machine q35 ${GUEST_TWEAKS} \ -enable-kvm -machine q35 ${GUEST_TWEAKS} \
${CPU} ${SMP} \ ${CPU} ${SMP} \
-m ${RAM_VM} -device virtio-balloon \ -m ${RAM_VM} -device virtio-balloon \
-drive if=pflash,format=raw,readonly,file="${EFI_CODE}" \ -drive if=pflash,format=raw,readonly=on,file="${EFI_CODE}" \
-drive if=pflash,format=raw,file="${EFI_VARS}" \ -drive if=pflash,format=raw,file="${EFI_VARS}" \
-drive media=cdrom,index=0,file="${iso}" \ -drive media=cdrom,index=0,file="${iso}" \
-drive media=cdrom,index=1,file="${driver_iso}" \ -drive media=cdrom,index=1,file="${driver_iso}" \
@ -469,7 +469,7 @@ function vm_boot() {
-rtc base=localtime,clock=host \ -rtc base=localtime,clock=host \
-object rng-random,id=rng0,filename=/dev/urandom \ -object rng-random,id=rng0,filename=/dev/urandom \
-device virtio-rng-pci,rng=rng0 \ -device virtio-rng-pci,rng=rng0 \
-spice port=${SPICE_PORT},disable-ticketing \ -spice port=${SPICE_PORT},disable-ticketing=on \
-device virtio-serial-pci \ -device virtio-serial-pci \
-device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 \ -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 \
-chardev spicevmc,id=spicechannel0,name=vdagent \ -chardev spicevmc,id=spicechannel0,name=vdagent \
@ -494,7 +494,7 @@ function vm_boot() {
-rtc base=localtime,clock=host \ -rtc base=localtime,clock=host \
-object rng-random,id=rng0,filename=/dev/urandom \ -object rng-random,id=rng0,filename=/dev/urandom \
-device virtio-rng-pci,rng=rng0 \ -device virtio-rng-pci,rng=rng0 \
-spice port=${SPICE_PORT},disable-ticketing \ -spice port=${SPICE_PORT},disable-ticketing=on \
-device virtio-serial-pci \ -device virtio-serial-pci \
-device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 \ -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 \
-chardev spicevmc,id=spicechannel0,name=vdagent \ -chardev spicevmc,id=spicechannel0,name=vdagent \