From 3ab60db9f159ec421d2bf996c0dc1707f523c1fc Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 11 Apr 2023 15:14:14 +0200 Subject: [qemu] Only attach parallel port if writable by user --- .../qemu/data/opt/openslx/vmchooser/plugins/qemukvm/run-virt.include | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/modules/qemu') 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 -- cgit v1.2.3-55-g7522