summaryrefslogtreecommitdiffstats
path: root/core/modules/vmchooser2
diff options
context:
space:
mode:
authorSimon Rettberg2017-04-28 15:44:17 +0200
committerSimon Rettberg2017-04-28 15:44:17 +0200
commitc3ad0c24dd7703de219542297e6c9936c1a1966e (patch)
treeea8f8d9eec006aeecc43096e218148867d01d37c /core/modules/vmchooser2
parent[kernel-vanilla] 4.9.25 (diff)
downloadmltk-c3ad0c24dd7703de219542297e6c9936c1a1966e.tar.gz
mltk-c3ad0c24dd7703de219542297e6c9936c1a1966e.tar.xz
mltk-c3ad0c24dd7703de219542297e6c9936c1a1966e.zip
[vmchooser2] Set --pvs-checked if $SLX_PVS_DEFAULT == "ON"
Refs #3105
Diffstat (limited to 'core/modules/vmchooser2')
-rwxr-xr-xcore/modules/vmchooser2/data/opt/openslx/bin/vmchooser7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser b/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser
index 5df1536e..21efe6df 100755
--- a/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser
+++ b/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser
@@ -43,7 +43,12 @@ if [ -n "$SLX_EXAM" ]; then
elif [ -n "$SLX_AUTOSTART_UUID" ]; then
SLX_EXAM_START="$SLX_AUTOSTART_UUID"
fi
-[ -z "$SLX_NO_PVS" ] && EXTRA="$EXTRA --pvs"
+if [ -z "$SLX_NO_PVS" ]; then
+ EXTRA="$EXTRA --pvs"
+ if [ "x$SLX_PVS_DEFAULT" = "xON" ]; then
+ EXTRA="$EXTRA --pvs-checked"
+ fi
+fi
# No quotes around $EXTRA!
if [ -z "$SLX_LOCATIONS" ]; then