From owner-freebsd-questions@FreeBSD.ORG Fri Jan 16 14:37:51 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D66CA106566B for ; Fri, 16 Jan 2009 14:37:51 +0000 (UTC) (envelope-from the.real.david.allen@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.233]) by mx1.freebsd.org (Postfix) with ESMTP id AC6E08FC20 for ; Fri, 16 Jan 2009 14:37:51 +0000 (UTC) (envelope-from the.real.david.allen@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1669188rvf.43 for ; Fri, 16 Jan 2009 06:37:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=s9mr0Xq3mYyfyqDylrcMZJ1on/bdJgNgfx6GqkKZifg=; b=osk6udiqHRg1jOLBzXEQpJJnQl++IBjIeUUa1UtieqDsrhGVdq9zJL3WEfcRBwBvDW uyxL2dBz48n/3a5NiLc8dX/s+1kugwWPRuyxH+lmot12yOfPHmoWZcz6c9ozHQClojc+ nuCpQ8crLBlQ/VuimavRdvEmP/kM6fORNSXdM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Xm68Djf0v6mN1s00X6itpgfe64wprD+5ouuYdvo/fUgmXQ09hHiaFl9B1RxEBmQEH/ KGw8+ZajBorYiZqOZ5rZ6r/s6uYqrskl4ZgyOOg70YokWGWU9VLtEyNZWJdbKFHMjDoD rxO4A3021I7MS6hDDJ+Y7AYYNUd0rSCRiQuDw= MIME-Version: 1.0 Received: by 10.141.29.16 with SMTP id g16mr1231168rvj.287.1232114809028; Fri, 16 Jan 2009 06:06:49 -0800 (PST) Date: Fri, 16 Jan 2009 06:06:49 -0800 Message-ID: <2daa8b4e0901160606rdeb7a1cu840f800458e9e38f@mail.gmail.com> From: David Allen To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Upgrading Jails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2009 14:37:52 -0000 I have a test system where I've accumulated a large number of jails. To update them (I'm not using the method outlined in the Handbook), I'd like to avoid mounting /usr/src and /usr/obj within each and then jexec-ing a shell but instead, perform everything on the host system directly. Would the following be appropriate? /etc/rc.d/jail stop cd /usr/src myjail=/home/jails/myjail mergemaster -p -t $myjail/var/tmp/temproot -D $myjail make installworld DESTDIR=$myjail mergemaster -t $myjail/var/tmp/temproot -D $myjail ... /etc/rc.d/jail start The second question relates to applying patches. One of the latest security advisories, for example, provides these instructions: cd /usr/src patch < /path/to/patch cd /usr/src/lib/bind make obj && make depend && make && make install cd /usr/src/usr.sbin/named make obj && make depend && make && make install /etc/rc.d/named restart Can the "make install" part be modified to include DESTDIR? Thanks.