From f6892efd7412f2e6c030dde4d7f81e85fcc2a870 Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Mon, 30 Aug 2021 09:14:30 +0200 Subject: [qemu] Remove local declaration outside of any function --- core/modules/qemu/data/opt/openslx/scripts/systemd-qemu_env | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/modules/qemu/data/opt/openslx/scripts/systemd-qemu_env b/core/modules/qemu/data/opt/openslx/scripts/systemd-qemu_env index 7cef5873..e0bc81f6 100755 --- a/core/modules/qemu/data/opt/openslx/scripts/systemd-qemu_env +++ b/core/modules/qemu/data/opt/openslx/scripts/systemd-qemu_env @@ -36,21 +36,21 @@ if passthrough_mdev_enabled; then modprobe "kvmgt" || { slxlog "qemu" "Could not load 'kvmgt' kernel modul!"; exit 4; } # get Intel integrated GPU mediated device for passthrough - local pt_mdev_device="$(passthrough_mdev_device_get_intel_igd)" + pt_mdev_device="$(passthrough_mdev_device_get_intel_igd)" if [ -z "${pt_mdev_device}" ]; then slxlog "qemu" "Could find any Intel integrated GPU with mediated device (Intel GVT-g) support!" exit 5; fi # get Intel GVT-g mediated device instance type - local pt_mdev_device_type="$(passthrough_mdev_type_get "${pt_mdev_device}")" + pt_mdev_device_type="$(passthrough_mdev_type_get "${pt_mdev_device}")" if [ -z "${pt_mdev_device_type}" ]; then slxlog "qemu" "Could obtain the mediated device instance type of the Intel integrated GPU (${pt_mdev_device})" exit 6; fi # generate UUID for Intel GVT-g mediated device instance - local pt_mdev_uuid="$(uuidgen)" + pt_mdev_uuid="$(uuidgen)" # create Intel GVT-g mediated device instance passthrough_mdev_instance_create "${pt_mdev_device}" "${pt_mdev_device_type}" "${pt_mdev_uuid}" -- cgit v1.2.3-55-g7522