Jail management

Kurt Jaeger lists at opsec.eu
Mon Feb 22 11:34:15 UTC 2016


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 at opsec.eu            +49 171 3101372                         4 years to go !


More information about the freebsd-jail mailing list