From 63596b617da73b29d2895cdbb27721b1650de259 Mon Sep 17 00:00:00 2001 From: Dmitry Samoylik Date: Mon, 23 Sep 2024 11:20:02 +0300 Subject: [PATCH] bug fixes --- cloud-images-build.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cloud-images-build.sh b/cloud-images-build.sh index 1bdb8ec..bf2dbd7 100755 --- a/cloud-images-build.sh +++ b/cloud-images-build.sh @@ -7,6 +7,8 @@ SOURCE='' NO_PAKER_INIT='' NO_PKG_INSTALL='' +PACKER='/usr/local/bin/packer' + # ------------------------------------------------------------------------------ Usage() { @@ -57,13 +59,13 @@ CheckSource "$SOURCE" || { echo "Unknown source: $SOURCE"; exit 1; } if [ -z "$NO_PKG_INSTALL" ]; then if which dnf &>/dev/null; then - install edk2-ovmf libvirt libvirt-daemon-kvm + sudo dnf install edk2-ovmf libvirt libvirt-daemon-kvm ansible-core fi fi -[ -z "$NO_PAKER_INIT" ] && packer init -upgrade . || exit 1 +[ -z "$NO_PAKER_INIT" ] && $PACKER init -upgrade . || exit 1 -PACKER_LOG=1 packer build -only=$SOURCE . 2>$PACKER_LOG_FILE || exit 1 +PACKER_LOG=1 $PACKER build -only=$SOURCE . 2>$PACKER_LOG_FILE || exit 1 if [ "$SOURCE" = "vmware-iso.msvsphere-9-ovf-x86_64" ]; then OUT_DIR='./vmware-iso.msvsphere-9-ovf-x86_64_ovf' -- 2.36.5