Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDavid Runge <dvzrv@archlinux.org>2021-05-06 01:40:17 +0200
committerDavid Runge <dvzrv@archlinux.org>2021-05-06 01:41:19 +0200
commit4b14350e5f6a429dbfbe25ed401dbc130b4eca54 (patch)
tree8ae5b84e11adb07754933a89e2ae846c2c560bc8 /scripts
parentc58b44f016e78796b365e4f01c61863d957ef1fa (diff)
Use QEMU 6.x options
scripts/run_archiso: Change parameters to qemu's `-drive` option to make use of the explicit `read-only=on`, as the implicit `read-only` is now obsolete. Closes #126
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/run_archiso.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/run_archiso.sh b/scripts/run_archiso.sh
index 36569b5..6ddce15 100755
--- a/scripts/run_archiso.sh
+++ b/scripts/run_archiso.sh
@@ -73,7 +73,7 @@ run_image() {
local ovmf_code='/usr/share/edk2-ovmf/x64/OVMF_CODE.fd'
fi
qemu_options+=(
- '-drive' "if=pflash,format=raw,unit=0,file=${ovmf_code},readonly"
+ '-drive' "if=pflash,format=raw,unit=0,file=${ovmf_code},read-only=on"
'-drive' "if=pflash,format=raw,unit=1,file=${working_dir}/OVMF_VARS.fd"
'-global' "driver=cfi.pflash01,property=secure,value=${secure_boot}"
)
@@ -89,7 +89,7 @@ run_image() {
if [[ -n "${oddimage}" ]]; then
qemu_options+=(
'-device' 'scsi-cd,bus=scsi0.0,drive=cdrom1'
- '-drive' "id=cdrom1,if=none,format=raw,media=cdrom,readonly=on,file=${oddimage}"
+ '-drive' "id=cdrom1,if=none,format=raw,media=cdrom,read-only=on,file=${oddimage}"
)
fi
@@ -100,7 +100,7 @@ run_image() {
-name archiso,process=archiso_0 \
-device virtio-scsi-pci,id=scsi0 \
-device "scsi-${mediatype%rom},bus=scsi0.0,drive=${mediatype}0" \
- -drive "id=${mediatype}0,if=none,format=raw,media=${mediatype/hd/disk},readonly=on,file=${image}" \
+ -drive "id=${mediatype}0,if=none,format=raw,media=${mediatype/hd/disk},read-only=on,file=${image}" \
-display "${display}" \
-vga virtio \
-audiodev pa,id=snd0 \