summaryrefslogtreecommitdiffstats
path: root/core/modules/qemu
diff options
context:
space:
mode:
authorSimon Rettberg2023-04-11 15:11:34 +0200
committerSimon Rettberg2023-04-11 15:11:34 +0200
commit66771bcb710060af7aef2dd29d42b80502d98e5a (patch)
tree253cb4edd175a34d859ca215c1dc427575c31272 /core/modules/qemu
parent[vbox-src] Always disable 3D for now because it's broken (diff)
downloadmltk-66771bcb710060af7aef2dd29d42b80502d98e5a.tar.gz
mltk-66771bcb710060af7aef2dd29d42b80502d98e5a.tar.xz
mltk-66771bcb710060af7aef2dd29d42b80502d98e5a.zip
[qemu] Only attach serial port if writable by current user
Diffstat (limited to 'core/modules/qemu')
-rw-r--r--core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/run-virt.include3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/run-virt.include b/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/run-virt.include
index 678ce7af..b947c67e 100644
--- a/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/run-virt.include
+++ b/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/run-virt.include
@@ -97,7 +97,8 @@ run_plugin() {
notempty SLX_FLOPPY_IMG && VIRTCMDOPTS+=( "-vmfloppy1" "${SLX_FLOPPY_IMG}" )
notempty CDROM_0 && VIRTCMDOPTS+=( "-vmcdrom0" "${CDROM_0}" )
notempty CDROM_1 && VIRTCMDOPTS+=( "-vmcdrom1" "${CDROM_1}" )
- notempty SERIAL0 && VIRTCMDOPTS+=( "-vmserial0" "${SERIAL0}" )
+ notempty SERIAL0 && [ -w "${SERIAL0}" ] \
+ && VIRTCMDOPTS+=( "-vmserial0" "${SERIAL0}" )
notempty PARALLEL0 && VIRTCMDOPTS+=( "-vmparallel0" "${PARALLEL0}" )
notempty pt_gpu_mdev_id && VIRTCMDOPTS+=( "-vmilmdevid0" "${pt_gpu_mdev_id}" )