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.
This commit is contained in:
Albert Hopkins 2015-08-02 17:48:27 +00:00
parent d696f5577d
commit 327013b660
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ ifeq ($(CHANGE_PASSWORD),YES)
ifdef ROOT_PASSWORD ifdef ROOT_PASSWORD
change_password = $(inroot) usermod -p '$(ROOT_PASSWORD)' root change_password = $(inroot) usermod -p '$(ROOT_PASSWORD)' root
else else
change_password = $(inroot) passwd -d root; $(inroot) passwd -e root change_password = $(inroot) passwd --delete --expire root
endif endif
endif endif