Module Name:    src
Committed By:   khorben
Date:           Mon Jul 15 00:18:03 UTC 2013

Modified Files:
        src/sbin/init: Makefile

Log Message:
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).


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sbin/init/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/init/Makefile
diff -u src/sbin/init/Makefile:1.38 src/sbin/init/Makefile:1.39
--- src/sbin/init/Makefile:1.38	Sat Apr 11 07:58:12 2009
+++ src/sbin/init/Makefile	Mon Jul 15 00:18:03 2013
@@ -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 @@ DPADD=	${LIBUTIL}
 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

Reply via email to