diff --git a/elements/ironic-agent/cleanup.d/99-ramdisk-create b/elements/ironic-agent/cleanup.d/99-ramdisk-create index 16229ded..5e04a18e 100755 --- a/elements/ironic-agent/cleanup.d/99-ramdisk-create +++ b/elements/ironic-agent/cleanup.d/99-ramdisk-create @@ -11,6 +11,8 @@ set -o pipefail [ -n "$TARGET_ROOT" ] +USER=${USER:-$(whoami)} + source $_LIB/img-functions IMAGE_PATH=$(readlink -f $IMAGE_NAME)