summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-02-29 16:54:50 +0100
committerSimon Rettberg2024-02-29 16:54:50 +0100
commit1da437aaeb34c041c4fa48f59a6a247de75c5f44 (patch)
tree8abf6659b9e42248c5eff81bb07d7b5cda7d4abe
parent[run-virt] Don't have writelog at this point (diff)
downloadmltk-1da437aaeb34c041c4fa48f59a6a247de75c5f44.tar.gz
mltk-1da437aaeb34c041c4fa48f59a6a247de75c5f44.tar.xz
mltk-1da437aaeb34c041c4fa48f59a6a247de75c5f44.zip
[vmware-common] Silence warning if SHARE_REMAP_MODE is empty
-rw-r--r--core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/determine_hardware_limitations.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/determine_hardware_limitations.inc b/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/determine_hardware_limitations.inc
index f63a9ba1..cc77cb91 100644
--- a/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/determine_hardware_limitations.inc
+++ b/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/determine_hardware_limitations.inc
@@ -183,7 +183,7 @@ set_vm_hardware_limits() {
# to a different value than the virtual number of cores per virtual CPU.
declare -rg VM_CORES_PER_SOCKET="$CPU_CORES"
- if [ "x$SHARED_FOLDERS" != "xFALSE" ] && [ "$SHARE_REMAP_MODE" -gt 1 ]; then
+ if is_on "$SHARED_FOLDERS" && [ -n "$SHARE_REMAP_MODE" ] && (( SHARE_REMAP_MODE > 1 )); then
declare -rg HGFS_DISABLED="FALSE"
else
declare -rg HGFS_DISABLED="TRUE"