Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Feb 2016 12:34:12 +0100
From:      Kurt Jaeger <lists@opsec.eu>
To:        Aristedes Maniatis <ari@ish.com.au>
Cc:        Miroslav Lachman <000.fbsd@quip.cz>, freebsd-jail <freebsd-jail@freebsd.org>
Subject:   Re: Jail management
Message-ID:  <20160222113412.GB26283@home.opsec.eu>
In-Reply-To: <0eaf61d4-43e6-265a-f773-820244fc8931@ish.com.au>
References:  <ff8307f6-1264-30ec-1ef8-ed3b0a18dd84@ish.com.au> <DFFE2BFC-1D53-457D-A4C3-633418D3690D@erdgeist.org> <0f5cae7e-7de3-2617-fcf6-3423d4caf13a@ish.com.au> <56CAE974.4050508@quip.cz> <0eaf61d4-43e6-265a-f773-820244fc8931@ish.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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/<domain>/.

-------------
#!/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 !



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