diff options
Diffstat (limited to 'core/modules/run-virt/data/opt/openslx/vmchooser/hooks/image-access.d')
-rw-r--r-- | core/modules/run-virt/data/opt/openslx/vmchooser/hooks/image-access.d/create-rw-image.inc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/hooks/image-access.d/create-rw-image.inc b/core/modules/run-virt/data/opt/openslx/vmchooser/hooks/image-access.d/create-rw-image.inc new file mode 100644 index 00000000..cf74cd09 --- /dev/null +++ b/core/modules/run-virt/data/opt/openslx/vmchooser/hooks/image-access.d/create-rw-image.inc @@ -0,0 +1,13 @@ +# This hook will be called in /opt/openslx/vmchooser/run-virt-includes/setup_image_access.inc +# It needs to set either VM_DISKFILE_RW or VM_DISKFILE_RO +# If none of them are set it will do default dnbd3/nfs fallbacks +# However this module is called BEFORE any virtualizer specific plugins +# Therefore used when implemented on a lower layer + +# Stuff neeeded for determination: +# Image UUID: $IMGUUID +# Edit Mode enabled (TRUE or FALSE): $VMCHOOSER_ADMIN_MODE + +writelog "Running setup image access hook: create-rw-image" +writelog "Image UUID: ${IMGUUID}" +writelog "EDIT MODE: ${VMCHOOSER_ADMIN_MODE}" |