4 # Provides: EnforcePersonality
5 # RunBefore: UmountImage
6 # RunAfter: DeleteSSHKeys
7 # Short-Description: Inject files to the instance
13 . "@commondir@/common.sh"
15 if [ ! -d "$SNF_IMAGE_TARGET" ]; then
16 log_error "Target dir: \`$SNF_IMAGE_TARGET' is missing"
19 if [ -n "$SNF_IMAGE_PERSONALITY" ]; then
20 echo "$SNF_IMAGE_PERSONALITY" |
21 @scriptsdir@/inject-files.py "$SNF_IMAGE_TARGET"
23 warn "This image has no personality (0 files to inject)\n"
28 # vim: set sta sts=4 shiftwidth=4 sw=4 et ai :