src upgrading jails (no ezjail, no "service" jails)
Greg Larkin
glarkin at FreeBSD.org
Wed Jun 1 20:44:40 UTC 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 6/1/11 3:36 PM, Aleksandr Miroslav wrote:
> On Wed, Jun 1, 2011 at 9:11 AM, Greg Larkin <glarkin at freebsd.org> wrote:
>>> I have 4 jails that are running 8.2-RELEASE that I would like to
>>> upgrade.
>>>
>>> I did not create the jails using ezjails
>>> I did not create the jails using the "template" method
>>
>> You can do this:
>> cd /usr/src
>> make installworld DESTDIR=<jaildir1>
>> make distribution DESTDIR=<jaildir1>
>
> Would this not overwrite the data I already had in the existing jails?
>
> Also, presumably, I would have to run mergemaster in jail after doing
> this, correct?
>
> Alex
Hi Alex,
Those commands will update the base system in the jail directory
"jaildir1" with the latest bits that were previously compiled with "make
buildworld". I don't believe they will disturb any other data in
/usr/local, if that's what you are concerned about.
Yes, you will also need to run mergemaster - I forgot about that step.
You can run it outside of the jail in question if you use the "-D" option.
I use ezjail here, and it will automate a lot of these steps for you.
Is there a reason that you can't use it?
Regards,
Greg
- --
Greg Larkin
http://www.FreeBSD.org/ - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
http://twitter.com/cpucycle/ - Follow you, follow me
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk3mpLEACgkQ0sRouByUApDi/gCeJ7Bdcs+R3bzKqL029M3nIZFV
1psAoKcSsfvhC+ydizhfH35G2gz8nOZA
=cg9H
-----END PGP SIGNATURE-----
More information about the freebsd-questions
mailing list