New makefile variable, ROOT_PASSWORD, to set the (encrypted) root password

This commit is contained in:
Albert Hopkins 2011-01-11 22:47:14 -05:00
parent 93a6eaf2f6
commit 3b6351d610
1 changed files with 5 additions and 1 deletions

View File

@ -48,7 +48,11 @@ else
endif
ifeq ($(CHANGE_PASSWORD),YES)
change_password = chroot $(CHROOT) passwd -d root; chroot $(CHROOT) passwd -e root
ifdef ROOT_PASSWORD
change_password = chroot $(CHROOT) usermod -p '$(ROOT_PASSWORD)' root
else
change_password = chroot $(CHROOT) passwd -d root; chroot $(CHROOT) passwd -e root
endif
endif
ifeq ($(REMOVE_PORTAGE_TREE),YES)