From owner-freebsd-jail@freebsd.org Mon Feb 22 11:34:15 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A3BADAB1BA9 for ; Mon, 22 Feb 2016 11:34:15 +0000 (UTC) (envelope-from lists@opsec.eu) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6AE531FE2 for ; Mon, 22 Feb 2016 11:34:15 +0000 (UTC) (envelope-from lists@opsec.eu) Received: from pi by home.opsec.eu with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1aXokm-0008h5-Sv; Mon, 22 Feb 2016 12:34:12 +0100 Date: Mon, 22 Feb 2016 12:34:12 +0100 From: Kurt Jaeger To: Aristedes Maniatis Cc: Miroslav Lachman <000.fbsd@quip.cz>, freebsd-jail Subject: Re: Jail management Message-ID: <20160222113412.GB26283@home.opsec.eu> References: <0f5cae7e-7de3-2617-fcf6-3423d4caf13a@ish.com.au> <56CAE974.4050508@quip.cz> <0eaf61d4-43e6-265a-f773-820244fc8931@ish.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0eaf61d4-43e6-265a-f773-820244fc8931@ish.com.au> X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2016 11:34:15 -0000 Hi! > * upgrade the basejail with FreeBSD upgrades. I am sure this is > a simple bit of chroot magic, but freebsd-update is a bit of a black > box to me. I use this script. My jails are in /vserv//. ------------- #!/usr/local/bin/bash if [ X$1 = 'X' ] then echo "usage: $0 vserv" echo " to update vservs with 10.1" exit 1 fi host=$1 UNAME_r=10.1-RELEASE-p6 export UNAME_r set -x freebsd-update -b /vserv/$host fetch freebsd-update -b /vserv/$host install ------------- -- pi@opsec.eu +49 171 3101372 4 years to go !