From 327013b660b96ba717171d475d74bcf3496a1605 Mon Sep 17 00:00:00 2001 From: Albert Hopkins Date: Sun, 2 Aug 2015 17:48:27 +0000 Subject: [PATCH] Makefile: don't call passwd twice Instead of calling passwd twice, one to delete the root password and one to expire it, simply call it once and pass --delete and --expire to the same command. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6fa2c64..4316c2e 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,7 @@ ifeq ($(CHANGE_PASSWORD),YES) ifdef ROOT_PASSWORD change_password = $(inroot) usermod -p '$(ROOT_PASSWORD)' root else - change_password = $(inroot) passwd -d root; $(inroot) passwd -e root + change_password = $(inroot) passwd --delete --expire root endif endif