summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJonathan Bauer2018-02-12 19:31:14 +0100
committerJonathan Bauer2018-02-12 19:31:14 +0100
commit186ea48899f7205d37f52629356e3bb0a51c1390 (patch)
treea060ebb53aaa17bc39035bc54df2ba6a90422596 /Makefile
parentMakefile: check_rootpw: add support for password hash check (diff)
downloadpacker-templates-186ea48899f7205d37f52629356e3bb0a51c1390.tar.gz
packer-templates-186ea48899f7205d37f52629356e3bb0a51c1390.tar.xz
packer-templates-186ea48899f7205d37f52629356e3bb0a51c1390.zip
Makefile: validate passwords on provisioning targets
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4c16a67..6b2ec18 100644
--- a/Makefile
+++ b/Makefile
@@ -100,7 +100,7 @@ $(BASETARGETS):
# Provisioning images
$(PROVTARGETS):
$(foreach flav, $(FLAVORS), %/$(flav)): %/base
- $(call check_rootpw)
+ $(call check_rootpw,$(@D))
$(eval BUILD_DIR := $(@D)/$(@F).$(TIMESTAMP))
$(info ** Provisioning '$(@D)' with '$(@F)' **)
@mkdir -p $(BUILD_DIR)
@@ -117,7 +117,7 @@ $(foreach flav, $(FLAVORS), %/$(flav)): %/base
# Generating boot files
$(BOOTTARGETS):
%/boot: %
- $(call check_rootpw)
+ $(call check_rootpw,$(@D))
$(eval BUILD_DIR := $(@D).$(TIMESTAMP))
$(info ** Generating boot files for '$(BUILD_DIR)')
$(PACKER) build -only=$(BUILDER) \