summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 95948e6..9a10a18 100644
--- a/Makefile
+++ b/Makefile
@@ -73,7 +73,7 @@ endif
HASHER := sha256sum
check_rootpw = $(if $(strip $(ROOTPW)),\
$(if $1,\
- $(if $(shell echo $(ROOTPW) | $(HASHER) --check --quiet $1/base/rootpw.$(HASHER)),\
+ $(if $(shell echo "$(ROOTPW)" | $(HASHER) --check --quiet $1/base/rootpw.$(HASHER)),\
$(error ROOTPW password hash does not match $1/base/rootpw.$(HASHER)),\
),\
),\
@@ -94,7 +94,7 @@ $(BASETARGETS):
-var='vm_name=rootfs-image' \
-var='output_directory=$(@D)/base' \
$(@D).json
- @echo $(ROOTPW) | $(HASHER) > $(@D)/base/rootpw.$(HASHER)
+ @echo "$(ROOTPW)" | $(HASHER) > $(@D)/base/rootpw.$(HASHER)
# Provisioning images