Intoduce a new make.conf entry, NO_MAKEDEV, and modifications to

/etc/Makefile so that if it is defined, MAKEDEV all is not called
during a make distribution.  This helps clean up the messy userland
in jail(), by reducing the number of devices exposed in jail.
Modifications to jail(2) to follow.

Approved by:	jkh-arius
This commit is contained in:
rwatson 2000-02-09 04:08:18 +00:00
parent d57c73c131
commit 5b76fa6882
3 changed files with 8 additions and 0 deletions

View File

@ -65,7 +65,9 @@ distribution:
pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
MAKEDEV.local MAKEDEV ${DESTDIR}/dev )
.if !defined(NO_MAKEDEV)
(cd ${DESTDIR}/dev; sh MAKEDEV all) ;
.endif
(cd ${.CURDIR}/root; \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \
${DESTDIR}/root/.cshrc; \

View File

@ -30,6 +30,9 @@
#NO_SENDMAIL= true
#NO_CVS= true
#
# To avoid running MAKEDEV all on /dev during install:
#NO_MAKEDEV= true
#
# To compile just the kernel with special optimisations, you should use
# this instead of CFLAGS (which is not applicable to kernel builds anyway):
#

View File

@ -30,6 +30,9 @@
#NO_SENDMAIL= true
#NO_CVS= true
#
# To avoid running MAKEDEV all on /dev during install:
#NO_MAKEDEV= true
#
# To compile just the kernel with special optimisations, you should use
# this instead of CFLAGS (which is not applicable to kernel builds anyway):
#