Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 2015 15:03:00 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r382829 - in head/dns: bind910 bind910/files bind99 bind99/files
Message-ID:  <201503311503.t2VF3069038866@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Tue Mar 31 15:02:59 2015
New Revision: 382829
URL: https://svnweb.freebsd.org/changeset/ports/382829
QAT: https://qat.redports.org/buildarchive/r382829/

Log:
  Enhance the error message when running from a jail without devfs.
  
  Sponsored by:	Absolight

Modified:
  head/dns/bind910/Makefile
  head/dns/bind910/files/named.in
  head/dns/bind99/Makefile
  head/dns/bind99/files/named.in

Modified: head/dns/bind910/Makefile
==============================================================================
--- head/dns/bind910/Makefile	Tue Mar 31 14:56:27 2015	(r382828)
+++ head/dns/bind910/Makefile	Tue Mar 31 15:02:59 2015	(r382829)
@@ -7,7 +7,7 @@ PORTVERSION=	${ISCVERSION:S/-P/P/}
 PORTREVISION=	0
 .else
 # dns/bind910 here
-PORTREVISION=	1
+PORTREVISION=	2
 .endif
 CATEGORIES=	dns net ipv6
 MASTER_SITES=	ISC/bind9/${ISCVERSION}

Modified: head/dns/bind910/files/named.in
==============================================================================
--- head/dns/bind910/files/named.in	Tue Mar 31 14:56:27 2015	(r382828)
+++ head/dns/bind910/files/named.in	Tue Mar 31 15:02:59 2015	(r382829)
@@ -130,11 +130,12 @@ chroot_autoupdate()
 		    -c ${named_chrootdir}/dev/random ]; then
 			info "named chroot: using pre-mounted devfs."
 		else
-			err 1 "named chroot: devfs cannot be mounted from" \
-			    "within a jail. Thus a chrooted named cannot" \
-			    "be run from within a jail." \
-			    "To run named without chrooting it, set" \
-			    "named_chrootdir=\"\" in /etc/rc.conf."
+			err 1 "named chroot: devfs cannot be mounted from " \
+				"within a jail. Thus a chrooted named cannot " \
+				"be run from within a jail.  Either mount the " \
+				"devfs with null and random from the host, or " \
+				"run named without chrooting it, set" \
+				"named_chrootdir=\"\" in /etc/rc.conf."
 		fi
 	fi
 

Modified: head/dns/bind99/Makefile
==============================================================================
--- head/dns/bind99/Makefile	Tue Mar 31 14:56:27 2015	(r382828)
+++ head/dns/bind99/Makefile	Tue Mar 31 15:02:59 2015	(r382829)
@@ -2,7 +2,7 @@
 
 PORTNAME=	bind
 PORTVERSION=	${ISCVERSION:S/-P/P/}
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	dns net ipv6
 MASTER_SITES=	ISC/bind9/${ISCVERSION}
 PKGNAMESUFFIX=	99

Modified: head/dns/bind99/files/named.in
==============================================================================
--- head/dns/bind99/files/named.in	Tue Mar 31 14:56:27 2015	(r382828)
+++ head/dns/bind99/files/named.in	Tue Mar 31 15:02:59 2015	(r382829)
@@ -128,11 +128,12 @@ chroot_autoupdate()
 		    -c ${named_chrootdir}/dev/random ]; then
 			info "named chroot: using pre-mounted devfs."
 		else
-			err 1 "named chroot: devfs cannot be mounted from" \
-			    "within a jail. Thus a chrooted named cannot" \
-			    "be run from within a jail." \
-			    "To run named without chrooting it, set" \
-			    "named_chrootdir=\"\" in /etc/rc.conf."
+			err 1 "named chroot: devfs cannot be mounted from " \
+				"within a jail. Thus a chrooted named cannot " \
+				"be run from within a jail.  Either mount the " \
+				"devfs with null and random from the host, or " \
+				"run named without chrooting it, set " \
+				"named_chrootdir=\"\" in /etc/rc.conf."
 		fi
 	fi
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503311503.t2VF3069038866>