summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm11
-rw-r--r--src/os-plugins/plugins/vmchooser/XX_vmchooser.sh5
2 files changed, 16 insertions, 0 deletions
diff --git a/src/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm b/src/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm
index 71ce3637..134ead6d 100644
--- a/src/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm
+++ b/src/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm
@@ -65,6 +65,17 @@ sub getAttrInfo
content_descr => '1 means active - 0 means inactive',
default => '1',
},
+ 'vmchooser::pvs' => {
+ applies_to_systems => 1,
+ applies_to_clients => 1,
+ description => unshiftHereDoc(<<' End-of-Here'),
+ start pvs config on default
+ End-of-Here
+ #TODO:
+ content_regex => qr{^(0|1)$},
+ content_descr => '1 means active - 0 means inactive',
+ default => '0',
+ },
'vmchooser::env' => {
applies_to_systems => 1,
applies_to_clients => 1,
diff --git a/src/os-plugins/plugins/vmchooser/XX_vmchooser.sh b/src/os-plugins/plugins/vmchooser/XX_vmchooser.sh
index f1f9517d..71852896 100644
--- a/src/os-plugins/plugins/vmchooser/XX_vmchooser.sh
+++ b/src/os-plugins/plugins/vmchooser/XX_vmchooser.sh
@@ -51,6 +51,11 @@ if [ -e $CONFFILE ]; then
mkdosfs ${PLUGINCONFDIR}/loopimg/fd.img >/dev/null 2>&1 #|| error
mount -n -t msdos -o loop,umask=000 ${PLUGINCONFDIR}/loopimg/fd.img \
${PLUGINCONFDIR}/fd-loop
+
+ if [ $vmchooser_pvs -ne 0 ]; then
+ sed -i /mnt/usr/share/xsessions/default.desktop \
+ -e "s,vmchooser$,vmchooser --pvs,"
+ fi
# finished ...
[ $DEBUGLEVEL -gt 0 ] && echo "done with 'vmchooser' os-plugin ..."