diff options
author | Manuel Bentele | 2021-08-31 11:13:32 +0200 |
---|---|---|
committer | Manuel Bentele | 2021-08-31 11:13:32 +0200 |
commit | 119be89d500ccc1a1063f53a7adfa56e156e4593 (patch) | |
tree | 5f3e1764be5c21081cf5f86c259cf85122d7ca73 | |
parent | [slxlog] Do not print any commands if echo command is submitted (diff) | |
download | mltk-119be89d500ccc1a1063f53a7adfa56e156e4593.tar.gz mltk-119be89d500ccc1a1063f53a7adfa56e156e4593.tar.xz mltk-119be89d500ccc1a1063f53a7adfa56e156e4593.zip |
[qemu] Fix issue with possible empty comparison in passthrough setup
-rw-r--r-- | core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/includes/passthrough-mdev.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/includes/passthrough-mdev.inc b/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/includes/passthrough-mdev.inc index f2e2942b..0240e0f1 100644 --- a/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/includes/passthrough-mdev.inc +++ b/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/includes/passthrough-mdev.inc @@ -19,7 +19,7 @@ function passthrough_mdev_enabled() { local passthrough_iommu="$(kernel_cmdln_parse_option "iommu")" local intel_gvt="$(kernel_cmdln_parse_option "i915.enable_gvt")" - if [ "${passthrough_iommu}" == "pt" ] && [ "${intel_gvt}" -eq 1 ]; then + if [ "${passthrough_iommu}" == "pt" ] && [ "${intel_gvt}" == "1" ]; then return 0 else return 1 |