summaryrefslogtreecommitdiffstats
path: root/sys/conf/Makefile.i386
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-08-25 19:16:43 +0000
committerpeter <peter@FreeBSD.org>2000-08-25 19:16:43 +0000
commitba486c0c62def30ebc2271540fd96400f9909a3f (patch)
tree79bfa7be101ae09ee1fc687361e1530305038c6b /sys/conf/Makefile.i386
parent2e169ef71aab280dcab8a777978095ac07456039 (diff)
downloadFreeBSD-src-ba486c0c62def30ebc2271540fd96400f9909a3f.zip
FreeBSD-src-ba486c0c62def30ebc2271540fd96400f9909a3f.tar.gz
Add some anti-foot-shooting protection to the kernel install target.
Do not install a kernel unless a device.hints exists. Yes, you can create an empty hints file if you refuse to use them.
Diffstat (limited to 'sys/conf/Makefile.i386')
-rw-r--r--sys/conf/Makefile.i3868
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386
index deb6ecc..8bbb953 100644
--- a/sys/conf/Makefile.i386
+++ b/sys/conf/Makefile.i386
@@ -214,6 +214,14 @@ kernel-tags:
sed -e 's, ../, ,' tags > tags1
kernel-install kernel-install.debug:
+ @if [ ! -f ${DESTDIR}/boot/device.hints ] ; then \
+ echo "You must set up a /boot/device.hints file first." ; \
+ exit 1 ; \
+ fi
+ @if [ x"`grep device.hints /boot/defaults/loader.conf /boot/loader.conf`" = "x" ]; then \
+ echo "You must activate /boot/device.hints in loader.conf." ; \
+ exit 1 ; \
+ fi
@if [ ! -f ${KERNEL}${.TARGET:S/kernel-install//} ] ; then \
echo "You must build a kernel first." ; \
exit 1 ; \
OpenPOWER on IntegriCloud