FreeBSD Bugzilla – Attachment 216399 Details for
Bug 247927
[patch] add jail upgrade documentation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Updates Handbook section 14.4.3 for updating Jails
jail.diff (text/plain), 2.09 KB, created by
Chris Jordan
on 2020-07-11 23:07:51 UTC
(
hide
)
Description:
Updates Handbook section 14.4.3 for updating Jails
Filename:
MIME Type:
Creator:
Chris Jordan
Created:
2020-07-11 23:07:51 UTC
Size:
2.09 KB
patch
obsolete
>Index: en_US.ISO8859-1/books/handbook/jails/chapter.xml >=================================================================== >--- en_US.ISO8859-1/books/handbook/jails/chapter.xml (revision 54313) >+++ en_US.ISO8859-1/books/handbook/jails/chapter.xml (working copy) >@@ -535,8 +535,33 @@ > to maintain jails instead. Use <option>-b</option> to specify > the path of the jail to be updated.</para> > >+ <para>To update the jail to the latest patch release of the >+ version of &os; it is already running, then on the >+ host:</para> >+ > <screen>&prompt.root; <userinput>freebsd-update -b <replaceable>/here/is/the/jail</replaceable> fetch</userinput> >+&prompt.root; <userinput>freebsd-update -b <replaceable> /here/is/the/jail</replaceable> install</userinput></screen> >+ >+ <para>To upgrade the jail to a new version (not just a security >+ update), first upgrade the host system as described in <xref >+ linkend="freebsdupdate-upgrade" />. Once the host has been >+ upgraded and rebooted, the jail can then be upgraded. >+ For example to upgrade from 12.0-RELEASE to 12.1-RELEASE, >+ on the host run:</para> >+ >+ <screen>&prompt.root; <userinput>freebsd-update -b <replaceable>/here/is/the/jail</replaceable> --currently-running <replaceable>12.0-RELEASE</replaceable> -r <replaceable>12.1-RELEASE</replaceable> upgrade</userinput> >+&prompt.root; <userinput>freebsd-update -b <replaceable>/here/is/the/jail</replaceable> install</userinput> >+&prompt.root; <userinput>service jail restart <replaceable>myjail</replaceable></userinput> > &prompt.root; <userinput>freebsd-update -b <replaceable>/here/is/the/jail</replaceable> install</userinput></screen> >+ >+ <para>Then, if it was a major version upgrade, reinstall all >+ installed packages and restart the jail again. This is >+ required because the ABI version changes when upgrading >+ between major versions of &os;. From the host:</para> >+ >+ <screen>&prompt.root; <userinput>pkg -j <replaceable>myjail</replaceable> upgrade -f</userinput> >+&prompt.root; <userinput>service jail restart <replaceable>myjail</replaceable></userinput></screen> >+ > </sect2> > </sect1> >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 247927
: 216399