Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jan 2001 11:46:21 -0400 (AST)
From:      The Hermit Hacker <scrappy@hub.org>
To:        <freebsd-questions@freebsd.org>
Cc:        <phk@freebsd.org>
Subject:   upgrading jail(s) world ...
Message-ID:  <Pine.BSF.4.31.0101241140210.575-100000@thelab.hub.org>

next in thread | raw e-mail | index | archive | help

I've got a server setup with ~30 jail environments, and growing, that are
used as "dedicated cyrus imap servers" ... works like a charm ... but, I
want to be able to upgrade the world inside of the jail to reflect the
machine itself, as I upgrade it ...

What is the simpliest way to do this?

Looking at the jail man page, to setup the jail requires:

     D=/here/is/the/jail
     cd /usr/src
     make hierarchy DESTDIR=$D
     make obj
     make depend
     make all
     make install DESTDIR=$D
     cd etc
     make distribution DESTDIR=$D NO_MAKEDEV=yes
     cd $D/dev
     sh MAKEDEV jail
     cd $D
     ln -sf dev/null kernel

now, I'm figuring that I should be safe with doing:

D=/here/is/the/jail
cd /usr/src
make buildworld
make installworld (install to base machine)
make installworld DESTDIR=$D (upgrade jail itself)
mergemaster (update config files for base machine)
mergemaster -D $D (update config files for jail env)

and that's it ...

Can anyone suggest anything wrong with that?  Something I'm
mis-understanding or overlooking?

Thanks ...

Marc G. Fournier                   ICQ#7615664               IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.31.0101241140210.575-100000>