From 2917841f0d6f8aa311123735bc05bc50438f0766 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 13 Apr 2018 11:37:09 +0200 Subject: [run-virt] error msg for missing plugin dir --- .../openslx/vmchooser/run-virt-includes/setup_vm_hypervisor.inc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'core/modules/run-virt/data/opt') diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/setup_vm_hypervisor.inc b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/setup_vm_hypervisor.inc index 81032a1f..1d6de54b 100644 --- a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/setup_vm_hypervisor.inc +++ b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/setup_vm_hypervisor.inc @@ -9,6 +9,15 @@ setup_vm_commandline() { writelog "Sanity check failed: PLUGIN_ID is not set." EXIT_TYPE="internal" EXIT_REASON="Konnte kein Virtualisierer für das gewählte Image ermitteln!" cleanexit 1 fi + local PLUGIN_DISPLAY_NAME="$(get_xml virtualizer_name)" + writelog "Plugin Name: $PLUGIN_DISPLAY_NAME" + isempty PLUGIN_DISPLAY_NAME && PLUGIN_DISPLAY_NAME="${PLUGIN_ID}" + if [ ! -d "${VMCHOOSER_DIR}/plugins/${PLUGIN_ID}" ]; then + EXIT_TYPE="internal" EXIT_REASON="msg.vm.missing-hypervisor +Fehlende Unterstützung für '${PLUGIN_DISPLAY_NAME}' im Grundsystem. +Stellen Sie sicher, dass ihre bwLehrpool-Administration das SLX_ADDON '${PLUGIN_ID}' zur Verfügung stellt. +" cleanexit 1 + fi if ! $(safesource "$VMCHOOSER_DIR/plugins/$PLUGIN_ID/run-virt.include"); then # safesource logs errors on its own EXIT_TYPE="internal" EXIT_REASON="Konnte Virtualisierungsplugin '$PLUGIN_ID' nicht initialisieren!" cleanexit 1 -- cgit v1.2.3-55-g7522