From 3b6351d6101a1c28188c571d238e846cf900cbd2 Mon Sep 17 00:00:00 2001 From: Albert Hopkins Date: Tue, 11 Jan 2011 22:47:14 -0500 Subject: [PATCH] New makefile variable, ROOT_PASSWORD, to set the (encrypted) root password --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index eddf9d9..0b591fd 100644 --- a/Makefile +++ b/Makefile @@ -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)