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:
parent
d696f5577d
commit
327013b660
2
Makefile
2
Makefile
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue