summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJonathan Bauer2020-03-19 16:47:41 +0100
committerJonathan Bauer2020-03-19 16:47:41 +0100
commit7364c8b30a579966fa6aead37f26d104f423da02 (patch)
treedf1c315679c841cf04262e1d160413184a7f78d9 /Makefile
parentcentos-8: fix missing boot_wait (diff)
downloadpacker-templates-7364c8b30a579966fa6aead37f26d104f423da02.tar.gz
packer-templates-7364c8b30a579966fa6aead37f26d104f423da02.tar.xz
packer-templates-7364c8b30a579966fa6aead37f26d104f423da02.zip
Makefile: actually check ROOTPW in base targets
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d1579e0..b9b628b 100644
--- a/Makefile
+++ b/Makefile
@@ -91,7 +91,7 @@ TIMESTAMP := $(shell date "+%Y-%m-%d_%H-%M-%S")
# The ROOTPW is only needed for the base, boot and provisioning targets.
# In every other case it must not be checked as it should be possible to call
# help or cleanup without the need of defining the password.
-PW_NEEDED := $(filter $(strip $(PROVTARGETS) $(BOOTTARGETS)),$(MAKECMDGOALS))
+PW_NEEDED := $(filter $(strip $(BASETARGETS) $(PROVTARGETS) $(BOOTTARGETS)),$(MAKECMDGOALS))
ifneq ($(PW_NEEDED),)
ifeq ($(strip $(ROOTPW)),)
$(error No root password is set, set it as ROOTPW in your environment.)