From 1edf7ed9908a83d7f912b3b611a2d1a8a1caf9d3 Mon Sep 17 00:00:00 2001 From: Albert Hopkins Date: Wed, 6 Apr 2011 10:25:05 -0400 Subject: [PATCH] New DASH Makefile variable, if set to "YES", will install app-shells/dash and set it as the login shell for root. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 7c81b99..bd31ae6 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,7 @@ HEADLESS = NO EXTERNAL_KERNEL = NO UDEV = YES ACCEPT_KEYWORDS = amd64 +DASH = NO M4 = m4 EMERGE = /usr/bin/emerge @@ -191,6 +192,11 @@ systools: sysconfig compile_options $(inroot) $(EMERGE) -n $(USEPKG) sys-power/acpid $(inroot) rc-update add acpid default $(inroot) $(EMERGE) -n $(USEPKG) net-misc/dhcpcd +ifeq ($(DASH),YES) + $(inroot) $(EMERGE) -n $(USEPKG) app-shells/dash + echo /bin/dash >> $(CHROOT)/etc/shells + $(inroot) chsh -s /bin/dash root +endif touch systools grub: systools grub.conf kernel @@ -248,6 +254,7 @@ ifeq ($(UDEV),NO) /bin/mknod loop/dev/vda b 254 0 /bin/mknod loop/dev/vda1 b 254 1 /bin/mknod loop/dev/vda2 b 254 2 + chown root:disk loop/dev/vda* sed -i 's/RC_DEVICES="auto"/RC_DEVICES="static"/' loop/etc/conf.d/rc endif umount gentoo