diff --git a/packer/build.sh b/packer/build.sh index 600b8d26..6b31a357 100755 --- a/packer/build.sh +++ b/packer/build.sh @@ -7,6 +7,8 @@ INPUT_DIR="$(dirname "$0")/$DISTRO_NAME" # e.g. packer/debian OUTPUT_DIR="$DIR_BUILD/$DISTRO" # e.g. build/debian11 (working dir) mkdir -p "$OUTPUT_DIR" +packer init "$INPUT_DIR" + packer build -force \ -var "appliance_name=${DISTRO}" \ -var "version=${DISTRO_VER}" \