New DASH Makefile variable, if set to "YES", will install app-shells/dash

and set it as the login shell for root.
This commit is contained in:
Albert Hopkins 2011-04-06 10:25:05 -04:00
parent 029d732f06
commit 1edf7ed990
1 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,7 @@ HEADLESS = NO
EXTERNAL_KERNEL = NO EXTERNAL_KERNEL = NO
UDEV = YES UDEV = YES
ACCEPT_KEYWORDS = amd64 ACCEPT_KEYWORDS = amd64
DASH = NO
M4 = m4 M4 = m4
EMERGE = /usr/bin/emerge EMERGE = /usr/bin/emerge
@ -191,6 +192,11 @@ systools: sysconfig compile_options
$(inroot) $(EMERGE) -n $(USEPKG) sys-power/acpid $(inroot) $(EMERGE) -n $(USEPKG) sys-power/acpid
$(inroot) rc-update add acpid default $(inroot) rc-update add acpid default
$(inroot) $(EMERGE) -n $(USEPKG) net-misc/dhcpcd $(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 touch systools
grub: systools grub.conf kernel grub: systools grub.conf kernel
@ -248,6 +254,7 @@ ifeq ($(UDEV),NO)
/bin/mknod loop/dev/vda b 254 0 /bin/mknod loop/dev/vda b 254 0
/bin/mknod loop/dev/vda1 b 254 1 /bin/mknod loop/dev/vda1 b 254 1
/bin/mknod loop/dev/vda2 b 254 2 /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 sed -i 's/RC_DEVICES="auto"/RC_DEVICES="static"/' loop/etc/conf.d/rc
endif endif
umount gentoo umount gentoo