summaryrefslogtreecommitdiffstats
path: root/core/modules/run-virt/data/opt/openslx/vmchooser/hooks/image-access.d/create-rw-image.inc
blob: cf74cd09dbfbc3f2f0b40a031b9837d9f132a3b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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}"