From owner-freebsd-questions@FreeBSD.ORG Sun Feb 27 15:02:16 2011 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 D612B106566B; Sun, 27 Feb 2011 15:02:16 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from sarah.protected-networks.net (sarah.protected-networks.net [IPv6:2001:470:1f07:4e1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 9DAD98FC0C; Sun, 27 Feb 2011 15:02:16 +0000 (UTC) Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [202.12.127.84]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "Iain Butler", Issuer "RSA Class 2 Personal CA" (verified OK)) (Authenticated sender: imb@protected-networks.net) by sarah.protected-networks.net (Postfix) with ESMTPSA id B3FCE6154; Sun, 27 Feb 2011 10:02:14 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=protected-networks.net; s=200705; t=1298818934; bh=dwFoD2SToxdZ1tl8CGHWe19nGqj/mJOmhSDVY9oMSsU=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=DQh8lmMJOrsPqy4ioJ1EWwl7jKi6H7Ll5b5gmQfbOL3YMIVp9C69BboFiJYRHj6Ci zb9Iz1hzsy/R7bTwjyxqrAGhWOYb7Mf6MWSgpNBkjM9abnrovg90HUerhscU027 DomainKey-Signature: a=rsa-sha1; s=200509; d=protected-networks.net; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:cc:subject: references:in-reply-to:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=GooQa8dGzNJgYr6ieRXYWWCKlwp9xZkjxBqhweHq0c8NXO47Qh6j/skrClYq2qiw9 0rlv0jI5JZNHBPjs4so/dTNuxdmZ9QbHaozmCk96KoYV4q+J72ffxPSamlHsqNK Message-ID: <4D6A6774.70108@protected-networks.net> Date: Sun, 27 Feb 2011 10:02:12 -0500 From: Michael Butler User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.13) Gecko/20110116 Thunderbird/3.1.7 MIME-Version: 1.0 To: Dan Naumov References: In-Reply-To: X-Enigmail-Version: 1.1.2 OpenPGP: id=0442D492 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, freebsd-questions@freebsd.org Subject: Re: using freebsd-update to update jails and their host 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: Sun, 27 Feb 2011 15:02:16 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02/27/11 08:48, Dan Naumov wrote: > I've also discovered the "ezjail-admin install -h file://" option which > installs a basejail using the host system as base, am I right in thinking I > could also use this by first upgrading my host and then running this command > to write the /basejail over with the updated files from the host to bring > them into sync? I still don't know how I would then fix the /etc under each > individual jail though. I've been using .. ezjail-admin update -i .. to update the binaries after a full update of the host system and something like .. #!/bin/sh for JAIL in {list-your-jails-here} do mv /usr/src /usr/local/jails/${JAIL}/usr JAIL_ID=`jls | grep $JAIL | awk '{ print $1 };'` echo "Updating: ${JAIL}" jexec ${JAIL_ID} mergemaster -scvi mv /usr/local/jails/${JAIL}/usr/src /usr done .. to update/merge with jail-specific config data, imb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk1qZ3IACgkQQv9rrgRC1JLqugCcCRUttSFubQnc6IJtgjR6wcjr xioAoKllN6juSk1A7hHso7/AXP8mMZ9p =tkVj -----END PGP SIGNATURE-----