Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/init Let init be built easily with the CHROOT capabilit...



details:   https://anonhg.NetBSD.org/src/rev/3af96f5fa9e4
branches:  trunk
changeset: 787927:3af96f5fa9e4
user:      khorben <khorben%NetBSD.org@localhost>
date:      Mon Jul 15 00:18:03 2013 +0000

description:
Let init be built easily with the CHROOT capability enabled.

This allows the ramdisk used in the incoming support for full-disk encryption to contain crunched binaries (much like sysinst) while booting a regular system (unlike sysinst).

diffstat:

 sbin/init/Makefile |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 802c124fe1c8 -r 3af96f5fa9e4 sbin/init/Makefile
--- a/sbin/init/Makefile        Sun Jul 14 15:44:00 2013 +0000
+++ b/sbin/init/Makefile        Mon Jul 15 00:18:03 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.38 2009/04/11 07:58:12 lukem Exp $
+#      $NetBSD: Makefile,v 1.39 2013/07/15 00:18:03 khorben Exp $
 #      @(#)Makefile    8.1 (Berkeley) 7/19/93
 
 PROG=  init
@@ -7,7 +7,9 @@
 LDADD= -lutil
 CPPFLAGS+=     -DMFS_DEV_IF_NO_CONSOLE -DSUPPORT_UTMP -DSUPPORT_UTMPX
 
-.ifdef SMALLPROG
+.ifdef  INIT_CHROOT
+CPPFLAGS+=     -DCHROOT
+.elifdef SMALLPROG
 CPPFLAGS+=     -DLETS_GET_SMALL
 .else
 CPPFLAGS+=     -DALTSHELL -DSECURE -DCHROOT



Home | Main Index | Thread Index | Old Index