summaryrefslogtreecommitdiffstats
path: root/core/modules/qemu
diff options
context:
space:
mode:
authorSimon Rettberg2023-04-11 15:14:14 +0200
committerSimon Rettberg2023-04-11 15:14:14 +0200
commit3ab60db9f159ec421d2bf996c0dc1707f523c1fc (patch)
tree75fef9ac20e82ecc5b7d52828d354062565f1b0d /core/modules/qemu
parent[qemu] Only attach serial port if writable by current user (diff)
downloadmltk-3ab60db9f159ec421d2bf996c0dc1707f523c1fc.tar.gz
mltk-3ab60db9f159ec421d2bf996c0dc1707f523c1fc.tar.xz
mltk-3ab60db9f159ec421d2bf996c0dc1707f523c1fc.zip
[qemu] Only attach parallel port if writable by 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 b947c67e..c37a10e0 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
@@ -99,7 +99,8 @@ run_plugin() {
notempty CDROM_1 && VIRTCMDOPTS+=( "-vmcdrom1" "${CDROM_1}" )
notempty SERIAL0 && [ -w "${SERIAL0}" ] \
&& VIRTCMDOPTS+=( "-vmserial0" "${SERIAL0}" )
- notempty PARALLEL0 && VIRTCMDOPTS+=( "-vmparallel0" "${PARALLEL0}" )
+ notempty PARALLEL0 && [ -w "${PARALLEL0}" ] \
+ && VIRTCMDOPTS+=( "-vmparallel0" "${PARALLEL0}" )
notempty pt_gpu_mdev_id && VIRTCMDOPTS+=( "-vmilmdevid0" "${pt_gpu_mdev_id}" )
if [ "${SHARE_REMAP_MODE}" -gt 1 ]; then