diff options
author | Jonathan Bauer | 2018-02-13 14:47:28 +0100 |
---|---|---|
committer | Jonathan Bauer | 2018-02-13 14:47:28 +0100 |
commit | 96717946e1400e4bd633edb3ee44e3a098367460 (patch) | |
tree | d4169d5099b1902a57bb339dbbf2c13a9141ff14 /Makefile | |
parent | Makefile: quote ROOTPW variable when generating/validating its hash (diff) | |
download | packer-templates-96717946e1400e4bd633edb3ee44e3a098367460.tar.gz packer-templates-96717946e1400e4bd633edb3ee44e3a098367460.tar.xz packer-templates-96717946e1400e4bd633edb3ee44e3a098367460.zip |
Makefile: create the symlink to <flavor>.latest before provisioning
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -105,6 +105,7 @@ $(foreach flav, $(FLAVORS), %/$(flav)): %/base $(info ** Provisioning '$(@D)' with '$(@F)' **) @mkdir -p $(BUILD_DIR) @cp -r $(ANSIBLE_DIR) $(BUILD_DIR)/$(ANSIBLE_DIR) + @ln -sfn $(@F).$(TIMESTAMP) $(@D)/$(@F).latest $(PACKER) build -only=$(BUILDER) \ $(PACKER_OPTS) \ -var='vm_name=rootfs-image' \ @@ -112,7 +113,6 @@ $(foreach flav, $(FLAVORS), %/$(flav)): %/base -var='base_image=$(@D)/base/rootfs-image' \ -var='playbook=setup-$(@F).yml' \ $(BUILD_DIR)/$(ANSIBLE_DIR)/run-playbook-only.json - @ln -sfn $(@F).$(TIMESTAMP) $(@D)/$(@F).latest # Generating boot files |