Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jan 2009 06:06:49 -0800
From:      David Allen <the.real.david.allen@gmail.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Upgrading Jails
Message-ID:  <2daa8b4e0901160606rdeb7a1cu840f800458e9e38f@mail.gmail.com>

Next in thread | Raw E-Mail | Index | Archive | Help
I have a test system where I've accumulated a large number of jails.  To
update them (I'm not using the method outlined in the Handbook), I'd like
to avoid mounting /usr/src and /usr/obj within each and then jexec-ing a
shell but instead, perform everything on the host system directly.  Would
the following be appropriate?

 /etc/rc.d/jail stop
 cd /usr/src
 myjail=/home/jails/myjail
 mergemaster -p -t $myjail/var/tmp/temproot -D $myjail
 make installworld DESTDIR=$myjail
 mergemaster -t $myjail/var/tmp/temproot -D $myjail
 ...
 /etc/rc.d/jail start

The second question relates to applying patches.  One of the latest
security advisories, for example, provides these instructions:

 cd /usr/src
 patch < /path/to/patch
 cd /usr/src/lib/bind
 make obj && make depend && make && make install
 cd /usr/src/usr.sbin/named
 make obj && make depend && make && make install
 /etc/rc.d/named restart

Can the "make install" part be modified to include DESTDIR?

Thanks.



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?2daa8b4e0901160606rdeb7a1cu840f800458e9e38f>