-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add notes created during upgrading FreeBSD hosts
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Notes For Upgrading FreeBSD | ||
=========================== | ||
|
||
Much of this document is based on the Handbook, section 24.6 Rebuilding World. | ||
That should be the primary source to use when upgrading. | ||
|
||
# Update /usr/src. It is a git clone of a mirror on github. | ||
|
||
# Start a script session to log everything for review. | ||
script /var/tmp/mw.out | ||
chflags -R noschg /usr/obj/* | ||
rm -rf /usr/obj | ||
|
||
cd /usr/src | ||
make -j8 buildworld | ||
make -j8 buildkernel KERNCONF=$kernel | ||
make installkernel KERNCONF=$kernel | ||
mergemaster -Fp | ||
make installworld | ||
mergemaster -iFU | ||
yes | make delete-old | ||
|
||
ezjail-admin update -i | ||
|
||
# For each jail directory: | ||
mergemaster -FU -D /path/to/jail | ||
|
||
reboot | ||
|
||
# Wait for machine to come back. | ||
|
||
# Resume script output from before. | ||
script -a /var/tmp/mw.out | ||
cd /usr/src | ||
make delete-old-libs | ||
|
||
pkg upgrade | ||
|
||
# For each jail directory: | ||
# CAVEAT: mailman (in the lists jail) MUST be upgraded via ports. | ||
jexec $jid pkg upgrade |